Bug 200858

Summary: fixfiles passes invalid '-q' flag to restorecon
Product: [Fedora] Fedora Reporter: Wart <wart>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, pgraner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-12 11:13:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wart 2006-07-31 23:22:31 UTC
Description of problem:
When running 'fixfiles -R <packagename>' in an not-yet-published package that
I'm working on for Fedora Extras, I noticed that it now generates an error:

# /sbin/fixfiles -R cyphesis restore
/sbin/restorecon: invalid option -- q
usage:  /sbin/restorecon [-FnrRv] [-e excludedir ] [-o filename ] [-f filename |
pathname... ]


Version-Release number of selected component (if applicable):
policycoreutils-1.30.17-5

How reproducible:
Always

Steps to Reproduce:
1. Run 'fixfiles -R ntp restore'.  Use any package you want for testing.
2. Look at the output of the command
  
Actual results:
Nothing is printed and files contexts are reset.

Expected results:
An error message is printed and file contexts are not changed:
# fixfiles -R ntp restore
/sbin/restorecon: invalid option -- q
usage:  /sbin/restorecon [-FnrRv] [-e excludedir ] [-o filename ] [-f filename |
pathname... ]


Additional info:

The extra '-q' seems to come from line 237 of /sbin/fixfiles:
237:     restore) restore -p -q ;;

Comment 1 Wart 2006-08-11 21:32:40 UTC
I noticed that this was fixed in policycoreutils-1.30.25-1.