diff options
author | Omar Polo <op@omarpolo.com> | 2024-03-03 15:43:58 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-03-03 15:43:58 +0000 |
commit | 248fb833f9883b714c48cd3edac2b212cbcd565f (patch) | |
tree | 3bb8f23a6309285429a431b731fdf345352ee860 | |
parent | 0ed763b03d653afcd34eac9a0802303c21c4fd1d (diff) |
fix `log access path' with chroot
We should open the log file inside the chroot; missed in
4acf495f41d2c26136e99072293ca8b9bff91dc0.
See https://github.com/omar-polo/gmid/issues/24
-rw-r--r-- | gmid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |