mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 07:47:05 +00:00
Merge pull request #2570 from brauner/2018-08-23/fix_privileged_logging
execute: pass /proc/self/fd/<nr>
This commit is contained in:
commit
40a6212ec9
@ -95,7 +95,7 @@ static int execute_start(struct lxc_handler *handler, void* data)
|
||||
goto out2;
|
||||
}
|
||||
|
||||
ret = snprintf(logfile, sizeof(logfile), "/proc/1/fd/%d", logfd);
|
||||
ret = snprintf(logfile, sizeof(logfile), "/proc/self/fd/%d", logfd);
|
||||
if (ret < 0 || (size_t)ret >= sizeof(logfile))
|
||||
goto out3;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user