]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
log: avoid regressions for relative log paths 3736/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 26 Mar 2021 21:32:18 +0000 (22:32 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 26 Mar 2021 21:32:18 +0000 (22:32 +0100)
We need to allow relative log paths.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c
src/lxc/log.c

index 77d8182bb598b55ec9eedcc29456ecb429bd3faa..e6a1c017a587eebf77aee6052d76134cc3ba1275 100644 (file)
@@ -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.
index 4733fcdeb12afa1fcc6666b51dc831c5d51a6ca7..b4877bca8dfcfcc0b3b1bae972abb2cc421267fa 100644 (file)
@@ -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)