36 lines
855 B
Diff
36 lines
855 B
Diff
|
|
||
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
||
|
|
||
|
--- nfs-utils-1.0.10/utils/mount/mount.c.kzak 2007-02-09 12:26:16.000000000 +0100
|
||
|
+++ nfs-utils-1.0.10/utils/mount/mount.c 2007-02-09 12:27:59.000000000 +0100
|
||
|
@@ -494,20 +494,21 @@
|
||
|
&extra_opts, &mount_opts, 0);
|
||
|
}
|
||
|
}
|
||
|
- 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 (!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 (mnt_err) {
|
||
|
+ mount_error(mount_point);
|
||
|
+ exit(EX_FAIL);
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
- if(!nomtab) {
|
||
|
+ if (!nomtab) {
|
||
|
add_mtab(spec, mount_point, nfs_mount_vers == 4 ? "nfs4" : "nfs",
|
||
|
flags, extra_opts, 0, 0);
|
||
|
}
|