From: Christian Brauner Date: Fri, 26 Mar 2021 21:32:18 +0000 (+0100) Subject: log: avoid regressions for relative log paths X-Git-Tag: lxc-5.0.0~239^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3736%2Fhead;p=thirdparty%2Flxc.git log: avoid regressions for relative log paths We need to allow relative log paths. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 77d8182bb..e6a1c017a 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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. diff --git a/src/lxc/log.c b/src/lxc/log.c index 4733fcdeb..b4877bca8 100644 --- a/src/lxc/log.c +++ b/src/lxc/log.c @@ -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)