]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/04-umount-exit-status.patch
Imported Debian patch 1.1.0-9
[nfs-utils.git] / debian / patches / 04-umount-exit-status.patch
1 mount.c seems to assume that nfsumount() uses standard C true/false
2 return values, and inverts them for the exit status (where 0 is
3 traditionally considered success). However, nfsumount() consistently
4 seems to use 0 for success, and thus a success gets returned as exit
5 status 1 and a failure as exit status 0. This confuses at least
6 the GNOME drive manager applet, and probably others as well.
7
8 Index: nfs-utils-1.1.0/utils/mount/mount.c
9 ===================================================================
10 --- nfs-utils-1.1.0.orig/utils/mount/mount.c
11 +++ nfs-utils-1.1.0/utils/mount/mount.c
12 @@ -371,7 +371,7 @@ int main(int argc, char *argv[])
13                         umount_usage();
14                         exit(1);
15                 }
16 -               exit(nfsumount(argc, argv) ? 0 : 1);
17 +               exit(nfsumount(argc, argv));
18         }
19  
20         if(argv[1] && argv[1][0] == '-') {