chiark / gitweb /
tmpfiles: compare return against correct errno
authorDave Reisner <dreisner@archlinux.org>
Sun, 12 Oct 2014 00:35:06 +0000 (20:35 -0400)
committerDave Reisner <dreisner@archlinux.org>
Mon, 13 Oct 2014 01:41:57 +0000 (21:41 -0400)
name_to_handle_at returns -EOPNOTSUPP, not -ENOTSUP.

src/tmpfiles/tmpfiles.c

index dafb9aee2f7e56be1c3a94d90c99206731d45822..8108b4304298ca6c18b4374ffc2d481179ccfb7c 100644 (file)
@@ -259,7 +259,7 @@ static int dir_is_mount_point(DIR *d, const char *subdir) {
 
         /* got only one handle; assume different mount points if one
          * of both queries was not supported by the filesystem */
-        if (r_p == -ENOSYS || r_p == -ENOTSUP || r == -ENOSYS || r == -ENOTSUP)
+        if (r_p == -ENOSYS || r_p == -EOPNOTSUPP || r == -ENOSYS || r == -EOPNOTSUPP)
                 return true;
 
         /* return error */