Skip to content

Commit

Permalink
Only use LOGPATH if lxcpath is unset or default
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Grzędzicki <lazy404@gmail.com>
  • Loading branch information
lazy404 authored and stgraber committed Aug 13, 2015
1 parent fca396c commit bbd94e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/log.c
Expand Up @@ -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 */
Expand Down

0 comments on commit bbd94e4

Please sign in to comment.