From 06fdc710a8c9962563e6cf9fc264427fd77097b6 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 26 Mar 2021 22:32:18 +0100 Subject: [PATCH] log: avoid regressions for relative log paths We need to allow relative log paths. Signed-off-by: Christian Brauner --- src/lxc/confile.c | 3 --- src/lxc/log.c | 3 --- 2 files changed, 6 deletions(-) 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) -- 2.47.2