X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fmount.c;h=55d60aa63b8298032d44dfdd0b89c949976a5d7d;hb=33cfd406a19a38bc10a977109bd2baaed1228a79;hp=45428b0c0662cc60400b5935d8d7cb0c1604bdb5;hpb=cb2342b123ded9f074345e15e5ffc0dbfeb095e0;p=nfs-utils.git diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 45428b0..55d60aa 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -443,18 +443,18 @@ int main(int argc, char *argv[]) start_statd(); } - if (fake) - return 0; if (mnt_err) exit(EX_FAIL); - mnt_err = do_mount_syscall(spec, mount_point, - nfs_mount_vers == 4 ? "nfs4" : "nfs", - flags, mount_opts); - - if (mnt_err) { - mount_error(mount_point); - exit(EX_FAIL); + if (!fake) { + mnt_err = do_mount_syscall(spec, mount_point, + nfs_mount_vers == 4 ? "nfs4" : "nfs", + flags, mount_opts); + + if (mnt_err) { + mount_error(mount_point); + exit(EX_FAIL); + } } if (!nomtab)