From: Michal Grzedzicki Date: Tue, 21 Jul 2015 08:29:00 +0000 (+0200) Subject: Only use LOGPATH if lxcpath is unset or default X-Git-Tag: lxc-1.1.3~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbd94e48f600eaae57181f8576f893fe60882a38;p=thirdparty%2Flxc.git Only use LOGPATH if lxcpath is unset or default Signed-off-by: Michał Grzędzicki --- diff --git a/src/lxc/log.c b/src/lxc/log.c index a257f6718..6726cf037 100644 --- a/src/lxc/log.c +++ b/src/lxc/log.c @@ -350,7 +350,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 */