]> git.pld-linux.org Git - packages/nfs-utils.git/blob - nfs-utils-mount-fake.patch
- sync idmapd.conf with reality from libnfsidmap
[packages/nfs-utils.git] / nfs-utils-mount-fake.patch
1
2 Signed-off-by: Karel Zak <kzak@redhat.com>
3
4 --- nfs-utils-1.0.10/utils/mount/mount.c.kzak   2007-02-09 12:26:16.000000000 +0100
5 +++ nfs-utils-1.0.10/utils/mount/mount.c        2007-02-09 12:27:59.000000000 +0100
6 @@ -494,20 +494,21 @@
7                                         &extra_opts, &mount_opts,  0);
8                 }
9         }
10 -       if (fake)
11 -               return 0;
12         if (mnt_err)
13                 exit(EX_FAIL);
14  
15 -       mnt_err = do_mount_syscall(spec, mount_point,
16 -                       nfs_mount_vers == 4 ? "nfs4" : "nfs", flags, mount_opts);
17 +       if (!fake) {
18 +               mnt_err = do_mount_syscall(spec, mount_point,
19 +                               nfs_mount_vers == 4 ? "nfs4" : "nfs", 
20 +                               flags, mount_opts);
21  
22 -       if(mnt_err) {
23 -               mount_error(mount_point);
24 -               exit(EX_FAIL);
25 +               if (mnt_err) {
26 +                       mount_error(mount_point);
27 +                       exit(EX_FAIL);
28 +               }
29         }
30  
31 -       if(!nomtab) {
32 +       if (!nomtab) {
33                 add_mtab(spec, mount_point, nfs_mount_vers == 4 ? "nfs4" : "nfs",
34                          flags, extra_opts, 0, 0);
35         }
This page took 0.023618 seconds and 3 git commands to generate.