summaryrefslogtreecommitdiffstats
path: root/utils/mount/nfsumount.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mount/nfsumount.c')
-rw-r--r--utils/mount/nfsumount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c
index e101105..81d0d3a 100644
--- a/utils/mount/nfsumount.c
+++ b/utils/mount/nfsumount.c
@@ -288,6 +288,7 @@ int nfsumount(int argc, char *argv[])
argv += 1;
argc -= 1;
+ argv[0] = argv[-1]; /* So that getopt error messages are correct */
while ((c = getopt_long (argc, argv, "fvnrlh",
umount_longopts, NULL)) != -1) {