Commit 479bba8b by Michal Grzedzicki Committed by Michał Grzędzicki

Only use LOGPATH if lxcpath is unset or default

parent b9efb0c9
...@@ -356,7 +356,7 @@ extern int lxc_log_init(const char *name, const char *file, ...@@ -356,7 +356,7 @@ extern int lxc_log_init(const char *name, const char *file,
lxcpath = LOGPATH; lxcpath = LOGPATH;
/* try LOGPATH if lxcpath is the default for the privileged containers */ /* 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); ret = _lxc_log_set_file(name, NULL, 0);
/* try in lxcpath */ /* 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