Red Hat Bugzilla – Bug 83206
Incorrect test of return code from grep command in /etc/rc.d/rc.sysinit
Last modified: 2014-03-16 22:33:58 EDT
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):
Steps to Reproduce:
"$_ROOT_HAS_QUOTA" always tests true.
"$_ROOT_HAS_QUOTA" only tests true if the quota option is given for the root
filesystem in /etc/fstab.
Suggest that the test is altered to:
... -a "$_ROOT_HAS_QUOTA" = "0" ...
Fixed, will be in 7.06-1.
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.