mirror of https://github.com/omar-polo/gmid.git
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:
parent
0ed763b03d
commit
248fb833f9
2
gmid.c
2
gmid.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue