diff options
-rw-r--r-- | utils/mount/mount.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 17c79e4..e2d3b53 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -384,15 +384,10 @@ int main(int argc, char *argv[]) { int c, flags = 0, nfs_mount_vers = 0, mnt_err = 1, fake = 0; char *spec, *mount_point, *extra_opts = NULL; - char *mount_opts = NULL, *p; + char *mount_opts = NULL; uid_t uid = getuid(); - progname = argv[0]; - if (!progname) - exit(2); - - if ((p = strrchr(progname, '/')) != NULL) - progname = p+1; + progname = basename(argv[0]); if(!strncmp(progname, "umount", strlen("umount"))) { if(argc < 2) { |