]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Only use LOGPATH if lxcpath is unset or default 596/head
authorMichal Grzedzicki <lazy404@gmail.com>
Tue, 21 Jul 2015 08:29:00 +0000 (10:29 +0200)
committerMichał Grzędzicki <lazy404@gmail.com>
Thu, 13 Aug 2015 20:53:33 +0000 (22:53 +0200)
Signed-off-by: Michał Grzędzicki <lazy404@gmail.com>
src/lxc/log.c

index 201cf474c2d12432e8ee76f17def8945db6dcbb2..f44a1d99b77cea04fbe5fedcd97f3985d8a5bf3e 100644 (file)
@@ -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 */