File: 02_fix-permissions.patch

package info (click to toggle)
mpack 1.6-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,300 kB
  • sloc: ansic: 8,791; sh: 330; makefile: 25; perl: 25
file content (20 lines) | stat: -rw-r--r-- 622 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: fix permissions.
Author: Sebastian Pipping <sebastian@pipping.org>
Bug-Debian: https://bugs.debian.org/655971
Last-Update: 2011-12-31
diff -up a/unixos.c b/unixos.c
--- a/unixos.c	2012-06-10 08:44:11.317756293 +1000
+++ b/unixos.c	2012-06-10 08:46:33.014703650 +1000
@@ -149,10 +149,10 @@ FILE *os_createnewfile(char *fname)
 	fd=open(fname, O_RDWR);
     }
     else {
-	fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0644);
+	fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0600);
     }
 #else
-    fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0644);
+    fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0600);
 #endif
 
     if (fd == -1)