diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch')
-rw-r--r-- | net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch b/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch new file mode 100644 index 000000000000..ea846f334557 --- /dev/null +++ b/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch @@ -0,0 +1,11 @@ +--- a/netwatch.c ++++ b/netwatch.c +@@ -2758,7 +2758,7 @@ updatecurrent (HOSTINFO * work, struct i + work->plog = open (nam, O_APPEND | O_WRONLY); + if (work->plog < 0) + { +- work->plog = open (nam, O_APPEND | O_CREAT | O_WRONLY); ++ work->plog = open (nam, O_APPEND | O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); + st = write (work->plog, &starttime, sizeof (starttime)); + st = write (work->plog, &simmagic, sizeof (simmagic)); + } |