X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fremount-api-vfs%2Fremount-api-vfs.c;h=373ae2552047287decc6251de9ca5aebc2b6726b;hb=e0295d2651cff034ab8200156f1ece06154b7bbc;hp=6cb77c1d1a1ef02e9ab715ebdbf4de50c8729f20;hpb=59e132a7f416d7c4a33a46d791f250e03d2c2cd0;p=elogind.git diff --git a/src/remount-api-vfs/remount-api-vfs.c b/src/remount-api-vfs/remount-api-vfs.c index 6cb77c1d1..373ae2552 100644 --- a/src/remount-api-vfs/remount-api-vfs.c +++ b/src/remount-api-vfs/remount-api-vfs.c @@ -56,6 +56,11 @@ int main(int argc, char *argv[]) { f = setmntent("/etc/fstab", "r"); if (!f) { + if (errno == ENOENT) { + ret = EXIT_SUCCESS; + goto finish; + } + log_error("Failed to open /etc/fstab: %m"); goto finish; }