aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xcron-sh/security.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ba29b4c..8bad6d5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
PACKAGE = msec
-VERSION = 0.50.5
+VERSION = 0.50.6
SVNPATH = svn+ssh://svn.mandriva.com/svn/soft/msec
all: promisc_check msec_find python
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 0440e14..e5a693a 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -228,7 +228,9 @@ Nothing has changed since the last run.
EOF
fi
else
- cat ${text} | /bin/mail -s "${subject}" "${MAIL_USER}"
+ # 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}"
fi
fi
fi