log: avoid regressions for relative log paths

We need to allow relative log paths. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 71cfd6cc
...@@ -1458,9 +1458,6 @@ static int set_config_log_file(const char *key, const char *value, ...@@ -1458,9 +1458,6 @@ static int set_config_log_file(const char *key, const char *value,
return 0; return 0;
} }
if (!abspath(value))
return ret_errno(EINVAL);
/* /*
* Store these values in the lxc_conf, and then try to set for actual * Store these values in the lxc_conf, and then try to set for actual
* current logging. * current logging.
......
...@@ -492,9 +492,6 @@ static int build_dir(const char *name) ...@@ -492,9 +492,6 @@ static int build_dir(const char *name)
if (is_empty_string(name)) if (is_empty_string(name))
return ret_errno(EINVAL); return ret_errno(EINVAL);
if (!abspath(name))
return ret_errno(EINVAL);
/* Make copy of the string since we'll be modifying it. */ /* Make copy of the string since we'll be modifying it. */
n = strdup(name); n = strdup(name);
if (!n) if (!n)
......
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