Debian Codegraph @

debian/patches/02_fix-permissions.patch

raw symbols SCIP
1 Description: fix permissions.
2 Author: Sebastian Pipping <[email protected]>
3 Bug-Debian: https://bugs.debian.org/655971
4 Last-Update: 2011-12-31
5 diff -up a/unixos.c b/unixos.c
6 --- a/unixos.c 2012-06-10 08:44:11.317756293 +1000
7 +++ b/unixos.c 2012-06-10 08:46:33.014703650 +1000
8 @@ -149,10 +149,10 @@ FILE *os_createnewfile(char *fname)
9 fd=open(fname, O_RDWR);
10 }
11 else {
12 - fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0644);
13 + fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0600);
14 }
15 #else
16 - fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0644);
17 + fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0600);
18 #endif
19
20 if (fd == -1)