Bug 83206

Summary: Incorrect test of return code from grep command in /etc/rc.d/rc.sysinit
Product: [Retired] Red Hat Linux Reporter: Need Real Name <md_markopoulos>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-31 17:08:19 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 Need Real Name 2003-01-31 09:10:44 UTC
Description of problem:
The conditional expression beginning at line 302 of /etc/rc.d/rc.sysinit has a
middle expression ("$_ROOT_HAS_QUOTA") that will always test true, no matter
what the return code is of the preceding grep|awk|grep pipeline. This is because
"$_ROOT_HAS_QUOTA" will always be a non-null string.

Version-Release number of selected component (if applicable):
initscripts-6.67-1

How reproducible:
N/A

Steps to Reproduce:
1.
2.
3.
    
Actual results:
"$_ROOT_HAS_QUOTA" always tests true.

Expected results:
"$_ROOT_HAS_QUOTA" only tests true if the quota option is given for the root
filesystem in /etc/fstab.

Additional info:
Suggest that the test is altered to:

... -a "$_ROOT_HAS_QUOTA" = "0" ...

Comment 1 Bill Nottingham 2003-01-31 17:08:19 UTC
Fixed, will be in 7.06-1.

Comment 2 John Flanagan 2003-12-19 19:13:48 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2003-341.html