]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/nfsumount.c
mount.nfs - make sure program name in error message is correct.
[nfs-utils.git] / utils / mount / nfsumount.c
index e101105268d3bdd9bd42a49ca3649b3b17250383..81d0d3a72c4ea5ca1a1230e3991b33fc38f38164 100644 (file)
@@ -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) {