Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 83206 - Incorrect test of return code from grep command in /etc/rc.d/rc.sysinit
Incorrect test of return code from grep command in /etc/rc.d/rc.sysinit
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2003-01-31 04:10 EST by Need Real Name
Modified: 2014-03-16 22:33 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-31 12:08:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2003:341 normal SHIPPED_LIVE New initscripts packages available 2003-12-19 00:00:00 EST

  None (edit)
Description Need Real Name 2003-01-31 04:10:44 EST
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):

How reproducible:

Steps to Reproduce:
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 12:08:19 EST
Fixed, will be in 7.06-1.
Comment 2 John Flanagan 2003-12-19 14:13:48 EST
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.


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