commit 248fb833f9883b714c48cd3edac2b212cbcd565f from: Omar Polo date: Sun Mar 03 15:43:58 2024 UTC 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 commit - 0ed763b03d653afcd34eac9a0802303c21c4fd1d commit + 248fb833f9883b714c48cd3edac2b212cbcd565f blob - f264670644d23472d20fbb0213bae14a30dbd71c blob + bf1aedc445729efc7280e5617f6520e54ac2f815 --- gmid.c +++ 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); }