Bug 1008045 - RFE: [exportfs] if specify Invalid exporting option, output usage to user.
Summary: RFE: [exportfs] if specify Invalid exporting option, output usage to user.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.0
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 1008046 1008047
TreeView+ depends on / blocked
 
Reported: 2013-09-14 00:01 UTC by JianHong Yin
Modified: 2017-05-02 03:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1008046 1008047 (view as bug list)
Environment:
Last Closed: 2013-12-11 20:30:44 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description JianHong Yin 2013-09-14 00:01:21 UTC
Description of problem:
RFE: [exportfs] if specify Invalid exporting option, output usage to user.

Version-Release number of selected component (if applicable):
[root@dhcp12-185 ~]# lsb_release -sir; rpm -q nfs-utils
RedHatEnterpriseServer 7.0
nfs-utils-1.2.8-2.0.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. exportfs  '*/home'
2. just output error info, not give usage info to user.
3.

Actual results:
[root@dhcp12-185 ~]# res=$(exportfs  '*/home' 2>&1 -x)
[root@dhcp12-185 ~]# echo $? $res
1 exportfs: invalid option -- 'x' usage: exportfs [-afhioruv] [host:/path]

[root@dhcp12-185 ~]# res=$(exportfs  '*/home' 2>&1 )
[root@dhcp12-185 ~]# echo $? $res
0 exportfs: Invalid exporting option: */home <<<--- should output usage also.

Expected results:


Additional info:

Comment 1 JianHong Yin 2013-09-14 00:10:48 UTC
[root@dhcp12-185 ~]# exportfs -u '*/home'
exportfs: Invalid unexporting option: */home
[root@dhcp12-185 ~]# exportfs  '*/home'
exportfs: Invalid exporting option: */home

Comment 3 Steve Dickson 2013-12-11 20:30:44 UTC
It does for me

$ sudo exportfs  '*/home'
exportfs: Invalid exporting option: */home

Comment 4 Yongcheng Yang 2017-05-02 03:54:17 UTC
Changing to be WONTFIX the same as rhel-6 (Bug 1008046 Comment 4) and rhel-5 (Bug 1008047 Comment 3) do.


Note You need to log in before you can comment on or make changes to this bug.