diff options
-rw-r--r-- | sfeed_frames.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c index 06d2c0d..ad21e5e 100644 --- a/sfeed_frames.c +++ b/sfeed_frames.c @@ -153,8 +153,9 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f) parsedtime = 0; strtotime(fields[FieldUnixTimestamp], &parsedtime); - /* content file doesn't exist yet and has write access */ - if ((fd = open(filepath, O_CREAT | O_EXCL | O_WRONLY, 0644)) == -1) { + /* content file doesn't exist yet and has error? */ + if ((fd = open(filepath, O_CREAT | O_EXCL | O_WRONLY, + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) == -1) { if (errno != EEXIST) err(1, "open: %s", filepath); } else { |