File: 06-umask.patch

package info (click to toggle)
diffmon 20020222-9.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 240 kB
  • sloc: sh: 1,789; sed: 21; makefile: 12
file content (14 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (3)
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}