Commit 1b123355 by Michal Grzedzicki Committed by Stéphane Graber

Only use LOGPATH if lxcpath is unset or default

parent 2b72f41e
......@@ -350,8 +350,8 @@ extern int lxc_log_init(const char *name, const char *file,
if (!lxcpath)
lxcpath = LOGPATH;
/* try LOGPATH if lxcpath is the default */
if (strcmp(lxcpath, lxc_global_config_value("lxc.lxcpath")) == 0)
/* try LOGPATH if lxcpath is the default for the privileged containers */
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