Bug 783444

Summary: restorecond seems to always return exit code = 0
Product: Red Hat Enterprise Linux 5 Reporter: Milos Malik <mmalik>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.8CC: dwalsh
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-24 16:44:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Milos Malik 2012-01-20 12:57:04 UTC
Description of problem:


Version-Release number of selected component (if applicable):
policycoreutils-newrole-1.33.12-14.8.el5
policycoreutils-gui-1.33.12-14.8.el5
policycoreutils-1.33.12-14.8.el5

How reproducible:
always

Steps to Reproduce:
# restorecond --help
restorecond: invalid option -- -
restorecond [-d] [-v] 
# echo $?
0
# restorecond -h
restorecond: invalid option -- h
restorecond [-d] [-v] 
# echo $?
0
# restorecond -u
restorecond: invalid option -- u
restorecond [-d] [-v] 
# echo $?
0
# 

Actual results:
* exit code = 0 if executed with invalid option

Expected results:
* exit code > 0 if executed with invalid option

Comment 1 Daniel Walsh 2012-01-24 16:27:35 UTC
I have fixed this in rawhide and upstream.  I don't think it is worth back porting.

Comment 2 RHEL Program Management 2012-01-24 16:44:46 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.