Skip to content

Commit

Permalink
fix `log access path' with chroot
Browse files Browse the repository at this point in the history
We should open the log file inside the chroot; missed in
4acf495.

See #24
  • Loading branch information
omar-polo committed Mar 3, 2024
1 parent 0ed763b commit 248fb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmid.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ main_send_logfd(struct conf *conf)
goto done;
}

fd = open(conf->log_access, O_WRONLY|O_CREAT|O_APPEND, 0600);
fd = open(path, O_WRONLY|O_CREAT|O_APPEND, 0600);
if (fd == -1)
log_warn("can't open %s", conf->log_access);
}
Expand Down

0 comments on commit 248fb83

Please sign in to comment.