aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2008-12-16 12:04:45 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2008-12-16 12:04:45 +0000
commit447878a4090ddb0ddb6ce8a43820598d62387f75 (patch)
tree559d5eda21d230756ad346edea6ea75f290e0896 /cron-sh/security.sh
parent9417b42ca373aef8a4213fd83dc3dfd639c07096 (diff)
downloadmsec-447878a4090ddb0ddb6ce8a43820598d62387f75.tar
msec-447878a4090ddb0ddb6ce8a43820598d62387f75.tar.gz
msec-447878a4090ddb0ddb6ce8a43820598d62387f75.tar.bz2
msec-447878a4090ddb0ddb6ce8a43820598d62387f75.tar.xz
msec-447878a4090ddb0ddb6ce8a43820598d62387f75.zip
Fixed invalid characters in security.sh (#26773).
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 08a17ed..c80c700 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -1,5 +1,6 @@
#!/bin/bash
+. /etc/sysconfig/i18n
LCK=/var/run/msec-security.pid
function cleanup() {
@@ -231,8 +232,8 @@ EOF
fi
else
# remove non-printable characters,
- # see http://qa.mandriva.com/show_bug.cgi?id=36848
- cat ${text} | sed -e 's,[^[:print:]],,' | /bin/mail -s "${subject}" "${MAIL_USER}"
+ # see http://qa.mandriva.com/show_bug.cgi?id=36848 and https://qa.mandriva.com/show_bug.cgi?id=26773
+ cat ${text} | sed -e "s,[[:cntrl:]],,g" | LC_CTYPE=$LC_CTYPE /bin/mail -s "${subject}" "${MAIL_USER}"
fi
fi
fi