chiark / gitweb /
[PATCH] Minor POSIX-fixes for udev
[elogind.git] / etc / dev.d / default / selinux.dev
index 7911d345b998676492da69ed13e48e9f6d3b76f7..9682658aad73c0797289b27b954090dc137d9e66 100644 (file)
@@ -11,7 +11,7 @@ fi
 [ "$UDEV_SELINUX" != "yes" ] && exit 0
 
 if [ -x /sbin/restorecon ]; then
-       if [ "$UDEV_LOG" = "yes" -a -x /usr/bin/logger ]; then
+       if [ "$UDEV_LOG" = "yes" ] && [ -x /usr/bin/logger ]; then
                /usr/bin/logger -p auth.debug "Restoring file security contexts for $DEVNAME"
        fi
        /sbin/restorecon $DEVNAME