Skip to content

Commit

Permalink
Merge pull request #786 from smukil/open_logs
Browse files Browse the repository at this point in the history
Allow logs to be read by others
  • Loading branch information
smukil authored Jan 20, 2021
2 parents 4ee3160 + b52916d commit b56cf6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dyn_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int log_init(int level, char *name) {
if (name == NULL || !strlen(name)) {
l->fd = STDERR_FILENO;
} else {
l->fd = open(name, O_WRONLY | O_APPEND | O_CREAT, 0644);
l->fd = open(name, O_WRONLY | O_APPEND | O_CREAT, 0666);
if (l->fd < 0) {
log_stderr("opening log file '%s' failed: %s", name, strerror(errno));
return -1;
Expand Down

0 comments on commit b56cf6a

Please sign in to comment.