Bug 1007848 - exportfs return 0, even specify invalid argument
Summary: exportfs return 0, even specify invalid argument
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.0
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: JianHong Yin
URL:
Whiteboard:
Depends On: 1007843
Blocks: 1007845
TreeView+ depends on / blocked
 
Reported: 2013-09-13 12:59 UTC by JianHong Yin
Modified: 2014-07-04 05:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1007843
Environment:
Last Closed: 2014-01-20 17:53:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description JianHong Yin 2013-09-13 12:59:38 UTC
+++ This bug was initially created as a clone of Bug #1007843 +++

Description of problem:
exportfs return 0, even specify invalid argument

Version-Release number of selected component (if applicable):
all version in RHEL5.9 5.10 6.x 7.0

How reproducible:
100%

Steps to Reproduce:
1. 
2.
3.

Actual results:
[root@dhcp-13-194 ~]# exportfs  -vi  */home
Invalid exporting option: */home
[root@dhcp-13-194 ~]# echo $?
0
[root@dhcp-13-194 ~]# exportfs


Expected results:
should return !0

Additional info:

Comment 2 Steve Dickson 2014-01-20 17:53:38 UTC
This seems to work for me...

# exportfs: invalid option -- 'b'
usage: exportfs [-afhioruvs] [host:/path]
1

# rpm -q nfs-utils
nfs-utils-1.2.9-2.1.el7.x86_64


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