From 479bba8b318a9a6a5cf79a57461ac5ec226a1560 Mon Sep 17 00:00:00 2001 From: Michal Grzedzicki Date: Tue, 21 Jul 2015 10:29:00 +0200 Subject: [PATCH] Only use LOGPATH if lxcpath is unset or default MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Grzędzicki --- src/lxc/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/log.c b/src/lxc/log.c index 201cf474c..f44a1d99b 100644 --- a/src/lxc/log.c +++ b/src/lxc/log.c @@ -356,7 +356,7 @@ extern int lxc_log_init(const char *name, const char *file, lxcpath = LOGPATH; /* try LOGPATH if lxcpath is the default for the privileged containers */ - if (!geteuid() && strcmp(lxcpath, lxc_global_config_value("lxc.lxcpath")) == 0) + if (!geteuid() && strcmp(LXCPATH, lxcpath) == 0) ret = _lxc_log_set_file(name, NULL, 0); /* try in lxcpath */ -- 2.47.2