Package: diffmon / 20020222-7

06-umask Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: fix a security hole with bad umask.
Author: Julien Danjou <acid@debian.org>
Last-Update: 2006-08-09
--- diffmon-20020222/diffmon	2002-02-26 15:06:49.000000000 +0100
+++ diffmon-20020222/diffmon	2006-08-09 08:59:21.389223825 +0200
@@ -170,7 +170,7 @@
     # Make sure PATH includes location of sendmail and gzip.
     PATH="/usr/local/gnubin:/usr/local/bin:${PATH}:/usr/lib:/usr/sbin"
 
-    umask 000
+    umask 077
 
     TRAP_SIGNALS="EXIT SIGHUP SIGINT SIGQUIT SIGTERM"
     trap 'cleanup_and_exit' ${TRAP_SIGNALS}