Commit 3cd05817 by Stéphane Graber

Merge pull request #596 from lazy404/master

Only use LOGPATH if lxcpath is unset or default
parents 61f619ba 479bba8b
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment