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 b2480b29
......@@ -1597,9 +1597,6 @@ static int set_config_log_file(const char *key, const char *value,
return 0;
}
if (!abspath(value))
return ret_errno(EINVAL);
/*
* Store these values in the lxc_conf, and then try to set for actual
* current logging.
......
......@@ -492,9 +492,6 @@ static int build_dir(const char *name)
if (is_empty_string(name))
return ret_errno(EINVAL);
if (!abspath(name))
return ret_errno(EINVAL);
/* Make copy of the string since we'll be modifying it. */
n = strdup(name);
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