Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 121143 - "Invalid argument" from initscripts
Summary: "Invalid argument" from initscripts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
: 121663 (view as bug list)
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-04-18 00:57 UTC by Michal Jaegermann
Modified: 2016-10-28 13:31 UTC (History)
3 users (show)

Fixed In Version: 7.51-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1338716 (view as bug list)
Environment:
Last Closed: 2004-05-03 21:18:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2004-04-18 00:57:05 UTC
Description of problem:

When booting with 'selinux=0' one sees this:

INIT: version 2.85 booting
cat: /proc/self/attr/current: Invalid argument

The culprit is that line:

if [ -n "$selinuxfs" -a  "`cat /proc/self/attr/current`" != "kernel"
]; then
.....

because 'test' is not short-circuiting '-a'.  Replacing the above
with

if [ -n "$selinuxfs" ] && \
   [ "`cat /proc/self/attr/current`" != "kernel" ]; then

will work as clearly intended.

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

How reproducible:
Always

Comment 1 Craig Cruden 2004-05-01 16:39:23 UTC
Looks similar to another FC Blocker bug:

121663 [NEW - normal - notting] strange boot message when
rc.sysinit starts to run.

Comment 2 Bill Nottingham 2004-05-03 00:57:20 UTC
*** Bug 121663 has been marked as a duplicate of this bug. ***

Comment 3 Bill Nottingham 2004-05-03 21:18:22 UTC
Fixed, will be in 7.51-1, thanks!


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