Bug 200858 - fixfiles passes invalid '-q' flag to restorecon
Summary: fixfiles passes invalid '-q' flag to restorecon
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-31 23:22 UTC by Wart
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-12 11:13:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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