X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=utils%2Fmount%2Fmount.c;h=d6d527cc5cb7d5d531c72123dbd51e461dcab1dc;hb=a3c8371b4f4cf9f0ff93ca040cac13dc4806ded9;hp=92ed2bcc3112d08faeb8417bf6160edd8410b56a;hpb=5835b1eec5a1f1e463c0762c510c6643fa2bff62;p=nfs-utils.git diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 92ed2bc..d6d527c 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -39,7 +39,6 @@ #include "nfs_mount.h" #include "nfs4_mount.h" -#include "nfsumount.h" #include "mount.h" #include "error.h" #include "network.h" @@ -374,13 +373,8 @@ int main(int argc, char *argv[]) discover_nfs_mount_data_version(); - if(!strncmp(progname, "umount", strlen("umount"))) { - if(argc < 2) { - umount_usage(); - exit(EX_USAGE); - } + if(!strncmp(progname, "umount", strlen("umount"))) exit(nfsumount(argc, argv)); - } if (argv[1] && argv[1][0] == '-') { if(argv[1][1] == 'V')