Bug 994507

Summary: fixfiles returns non-zero value when no error is encountered
Product: Red Hat Enterprise Linux 7 Reporter: Michal Trunecka <mtruneck>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Michal Trunecka <mtruneck>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: ebenes
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1043969 (view as bug list) Environment:
Last Closed: 2014-06-13 09:20:52 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1043969    

Description Michal Trunecka 2013-08-07 12:19:25 UTC
Description of problem:
When fixfiles is run with no directory definition, like this:

fixfiles restore

(works also with check and validate), it returns non-zero value (1).

The culprit are the last two lines in restore() function:

   [ -e /var/lib/debug ] && find /var/.......
   exit $?

And on default system, the debug file/dir doesn't exist, therefore the non-zero return value is propagated to the exit command.


Version-Release number of selected component (if applicable):
policycoreutils-2.1.14-70.el7.x86_64

Comment 1 Daniel Walsh 2013-10-04 21:27:38 UTC
Fixed in policycoreutils-2.1.14-85

Comment 3 Ludek Smid 2014-06-13 09:20:52 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.