aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-import-state
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/fedora-import-state')
-rwxr-xr-xsystemd/fedora-import-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/fedora-import-state b/systemd/fedora-import-state
index 16447026..85bc4817 100755
--- a/systemd/fedora-import-state
+++ b/systemd/fedora-import-state
@@ -34,6 +34,6 @@ IFS=$IFS_backup
# Run restorecon on the copied files:
# ===================================
-if [ -e /sys/fs/selinux/enforce -a -x /usr/sbin/restorecon ]; then
+if [ -e /sys/fs/selinux/enforce ] && [ -x /usr/sbin/restorecon ]; then
find . -mindepth 1 -print0 | { cd / && xargs --null restorecon -iF; }
fi