aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-05-03 21:16:34 +0000
committerBill Nottingham <notting@redhat.com>2004-05-03 21:16:34 +0000
commitb0ed17e48b58d1fe4f2ee518f9854847d20c0fdc (patch)
tree856b23458489c6e25fe46150cb0827770b5fe58d /rc.d
parent17ea2b3b10bd96a4b59cf4d62b826b6e3e39f6fe (diff)
downloadinitscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar
initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar.gz
initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar.bz2
initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar.xz
initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.zip
fix selinux short-circuit test (#121143, <michal@harddata.com>)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index cfe552b7..9d735fdf 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -32,7 +32,7 @@ mount -n -t sysfs /sys /sys >/dev/null 2>&1
# Check SELinux status
selinuxfs=`awk '/ selinuxfs / { print $2 }' /proc/mounts`
SELINUX=
-if [ -n "$selinuxfs" -a "`cat /proc/self/attr/current`" != "kernel" ]; then
+if [ -n "$selinuxfs" ] && [ "`cat /proc/self/attr/current`" != "kernel" ]; then
if [ -r $selinuxfs/enforce ] ; then
SELINUX=`cat $selinuxfs/enforce`
else