aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-03-03 15:43:58 +0000
committerOmar Polo <op@omarpolo.com>2024-03-03 15:43:58 +0000
commit248fb833f9883b714c48cd3edac2b212cbcd565f (patch)
tree3bb8f23a6309285429a431b731fdf345352ee860
parent0ed763b03d653afcd34eac9a0802303c21c4fd1d (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmid.c b/gmid.c
index f264670..bf1aedc 100644
--- a/gmid.c
+++ b/gmid.c
@@ -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);
}