aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-29 11:03:28 +0200
committerDee'Kej <deekej@linuxmail.org>2018-05-29 11:54:41 +0200
commitdb1ca2fadd20d0a4fb5a0fe18adcd8c960db9cf3 (patch)
treed7e245e9f3e7352f247bbb0a1ed9bd64fb69b917 /systemd
parentb5fd18ec4fd3e320e09ab896486f79941f12039c (diff)
downloadinitscripts-db1ca2fadd20d0a4fb5a0fe18adcd8c960db9cf3.tar
initscripts-db1ca2fadd20d0a4fb5a0fe18adcd8c960db9cf3.tar.gz
initscripts-db1ca2fadd20d0a4fb5a0fe18adcd8c960db9cf3.tar.bz2
initscripts-db1ca2fadd20d0a4fb5a0fe18adcd8c960db9cf3.tar.xz
initscripts-db1ca2fadd20d0a4fb5a0fe18adcd8c960db9cf3.zip
fedora-readonly: command substitution warning fixed (null-byte input)
Due to some change in bash-4.4, it started to give out warnings about ignored null-byte characters in the command substitution: https://bugzilla.redhat.com/show_bug.cgi?id=1472137#c2 Resolves: RHBZ#1583338
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-readonly2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/fedora-readonly b/systemd/fedora-readonly
index 83b1747b..a3679580 100755
--- a/systemd/fedora-readonly
+++ b/systemd/fedora-readonly
@@ -11,7 +11,7 @@ HOSTNAME="$(hostname)"
# Check SELinux status
SELINUX_STATE=
-if [ -e "/sys/fs/selinux/enforce" ] && [ "$(cat /proc/self/attr/current)" != "kernel" ]; then
+if [ -e "/sys/fs/selinux/enforce" ] && [ "$(cat /proc/self/attr/current | tr -d '\000' )" != "kernel" ]; then
if [ -r "/sys/fs/selinux/enforce" ] ; then
SELINUX_STATE=$(cat "/sys/fs/selinux/enforce")
else