summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-02-29 14:10:38 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-02-29 14:10:38 +0100
commiteddf9662587aa0ee356a9090bc7b01e65f4fc0b2 (patch)
tree042af90646d71cb4b5a837ca61bdecf91be14bfd
parent99bc54667e5fee954252cdae19ec4e62dfdca12d (diff)
sfeed_frames: whoops, set file permissions (else its 0000)
-rw-r--r--sfeed_frames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index 36655a8..1367876 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -155,7 +155,7 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f)
strtotime(fields[FieldUnixTimestamp], &parsedtime);
/* content file doesn't exist yet and has write access */
- if ((fd = open(filepath, O_CREAT | O_EXCL | O_WRONLY)) == -1) {
+ if ((fd = open(filepath, O_CREAT | O_EXCL | O_WRONLY, 0644)) == -1) {
if (errno != EEXIST)
err(1, "open: %s", filepath);
} else {