conntrack-tools/conntrack-tools-0.9.5-open.patch
2007-10-29 23:05:53 +00:00

13 lines
578 B
Diff

diff -urN conntrack-tools-0.9.5/src/main.c conntrack-tools-0.9.5.p/src/main.c
--- conntrack-tools-0.9.5/src/main.c 2007-07-07 13:10:13.000000000 +0100
+++ conntrack-tools-0.9.5.p/src/main.c 2007-10-19 14:12:24.000000000 +0100
@@ -264,7 +264,7 @@
/*
* lock file
*/
- if ((ret = open(CONFIG(lockfile), O_CREAT | O_EXCL | O_TRUNC)) == -1) {
+ if ((ret = open(CONFIG(lockfile), O_CREAT | O_EXCL | O_TRUNC, S_IRUSR | S_IWUSR)) == -1) {
fprintf(stderr, "lockfile `%s' exists, perhaps conntrackd "
"already running?\n", CONFIG(lockfile));
exit(EXIT_FAILURE);