From 447878a4090ddb0ddb6ce8a43820598d62387f75 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 16 Dec 2008 12:04:45 +0000 Subject: Fixed invalid characters in security.sh (#26773). --- cron-sh/security.sh | 5 +++-- 1 file 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 -- cgit v1.2.1