diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-22 15:33:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-22 15:33:43 +0200 |
commit | e0295d2651cff034ab8200156f1ece06154b7bbc (patch) | |
tree | 237a6241ce0e5f6d9b92c1c427722acd264cdeea /src/core/mount.c | |
parent | 59e132a7f416d7c4a33a46d791f250e03d2c2cd0 (diff) |
mount: don't fail if fstab doesn't exist
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 760ffcdbf6..dbd4893bcb 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -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; |