]> git.ipfire.org Git - thirdparty/lxc.git/commit
log.c:__lxc_log_set_file: completely close log file when overriding 821/head
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 15 Feb 2016 20:18:18 +0000 (12:18 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 15 Feb 2016 20:19:52 +0000 (12:19 -0800)
commitd9c9b1808af250ec37379c7f0242941a450aa3af
tree8a7af90e00a7261e8e88de5c210df86618f7e2dc
parent3f53c691d248434fdb817e615495d9c419af07d1
log.c:__lxc_log_set_file: completely close log file when overriding

Otherwise after a shortcut on error we could end up trying to write
to the closed log fd.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/log.c