fix `log access path' with chroot

We should open the log file inside the chroot; missed in
4acf495f41.

See https://github.com/omar-polo/gmid/issues/24
This commit is contained in:
Omar Polo 2024-03-03 15:43:58 +00:00
parent 0ed763b03d
commit 248fb833f9
1 changed files with 1 additions and 1 deletions

2
gmid.c
View File

@ -412,7 +412,7 @@ main_send_logfd(struct conf *conf)
goto done; 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) if (fd == -1)
log_warn("can't open %s", conf->log_access); log_warn("can't open %s", conf->log_access);
} }