X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsumount.c;h=81d0d3a72c4ea5ca1a1230e3991b33fc38f38164;hp=e101105268d3bdd9bd42a49ca3649b3b17250383;hb=b8b6a251c372b134e66d0f436bf2c6231cc1c055;hpb=4bc447f758ee4d64706b990ac68cb766dbff113c;ds=sidebyside 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) {