diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-02-29 14:10:38 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-02-29 14:10:38 +0100 |
commit | eddf9662587aa0ee356a9090bc7b01e65f4fc0b2 (patch) | |
tree | 042af90646d71cb4b5a837ca61bdecf91be14bfd | |
parent | 99bc54667e5fee954252cdae19ec4e62dfdca12d (diff) |
sfeed_frames: whoops, set file permissions (else its 0000)
-rw-r--r-- | sfeed_frames.c | 2 |
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 { |