Bug 1007848

Summary: exportfs return 0, even specify invalid argument
Product: Red Hat Enterprise Linux 7 Reporter: JianHong Yin <jiyin>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: JianHong Yin <jiyin>
Severity: medium Docs Contact:
Priority: high    
Version: 7.0CC: jlayton
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1007843 Environment:
Last Closed: 2014-01-20 17:53:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1007843    
Bug Blocks: 1007845    

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