]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
log: avoid regressions for relative log paths
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 26 Mar 2021 21:32:18 +0000 (22:32 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 Mar 2021 15:00:42 +0000 (17:00 +0200)
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 a95ceecfdda1eb47cfd73ba30a1272872ce7b783..49a94983be07cedb4b9264cae7285f62a3d9b31b 100644 (file)
@@ -1458,9 +1458,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)