chiark / gitweb /
transaction: cancel jobs non-recursively on isolate
[elogind.git] / src / core / mount.c
index 760ffcdbf6e983542828e876fc3a4a9ef1bd67ee..dbd4893bcbdcafd05e89cf1dcf79f04a3504ed10 100644 (file)
@@ -1537,8 +1537,9 @@ static int mount_load_etc_fstab(Manager *m) {
         assert(m);
 
         errno = 0;
-        if (!(f = setmntent("/etc/fstab", "r")))
-                return -errno;
+        f = setmntent("/etc/fstab", "r");
+        if (!f)
+                return errno == ENOENT ? 0 : -errno;
 
         while ((me = getmntent(f))) {
                 char *where, *what;