Debian Codegraph @

debian/patches/portability_open

raw symbols SCIP
1 Subject: Missing mode to open() call with O_CREAT
2 Author: James Westby <[email protected]>
3 Bug-Debian: http://bugs.debian.org/507044
4
5 --- a/ifgate/flock.c
6 +++ b/ifgate/flock.c
7 @@ -15,7 +15,7 @@ char *fn;
8
9 if (fn)
10 {
11 - if ((lfd=open(fn,O_RDWR | O_CREAT)) < 0)
12 + if ((lfd=open(fn,O_RDWR | O_CREAT,0600)) < 0)
13 {
14 logerr("$Error opening file %s",fn);
15 return -1;