aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-24 13:34:07 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-24 13:34:07 +0000
commit8feea829a7d522228e2d5c5ebc3e42bb750d5c1d (patch)
treeac01c25339e7ade1e40ad2bc4ed70b0b4e69ed2f /cron-sh/security.sh
parenta8bfe3ecabf9bde20ecc446370e745e14effb3ef (diff)
downloadmsec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar
msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar.gz
msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar.bz2
msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar.xz
msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.zip
Sending correct notify messages.
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 19f6d8e..7b26119 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -243,8 +243,8 @@ EOF
Notifylog() {
if [ ${NOTIFY_WARN} == yes ]; then
message=${1}
- DBUS_SEND=`which DBUS_SEND 2>/dev/null`
- if [ -x "$DBUS_SEND" -a -s ${message} ]; then
+ DBUS_SEND=`which dbus-send 2>/dev/null`
+ if [ -x "$DBUS_SEND" ]; then
$DBUS_SEND --system --type=signal /com/mandriva/user com.mandriva.user.security_notification string:"$message"
fi
fi