diff options
author | Steve Dickson <steved@redhat.com> | 2016-06-07 14:32:21 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-06-07 14:32:21 -0400 |
commit | a528ad3147815bfc05c21a7ae69fbdbe83fddefd (patch) | |
tree | d154c94c3131507dc7ffde1283391abef7dc9e32 | |
parent | c25b8f845f16fa12216cfb0975344ef908154c46 (diff) | |
download | nfs-utils-a528ad3147815bfc05c21a7ae69fbdbe83fddefd.tar.gz nfs-utils-a528ad3147815bfc05c21a7ae69fbdbe83fddefd.tar.xz nfs-utils-a528ad3147815bfc05c21a7ae69fbdbe83fddefd.zip |
mount.nfs: added usage output when no arguemnts are given
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/mount/mount_libmount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mount/mount_libmount.c b/utils/mount/mount_libmount.c index fa46d54..1f01f7f 100644 --- a/utils/mount/mount_libmount.c +++ b/utils/mount/mount_libmount.c @@ -208,6 +208,7 @@ static int umount_main(struct libmnt_context *cxt, int argc, char **argv) if (!spec || (*spec != '/' && strchr(spec,':') == NULL)) { nfs_error(_("%s: no mount point provided"), progname); + umount_usage(); return EX_USAGE; } @@ -329,6 +330,7 @@ static int mount_main(struct libmnt_context *cxt, int argc, char **argv) if (!mount_point) { nfs_error(_("%s: no mount point provided"), progname); + mount_usage(); goto err; } if (!spec) { |