]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Revert "conf: reject absolute include paths containing /../"
authorJaroslav Kysela <perex@perex.cz>
Mon, 19 Oct 2026 13:52:25 +0000 (15:52 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Oct 2026 13:53:56 +0000 (15:53 +0200)
This reverts commit f5377bbb572d88d9a59eee8ae26bff30d5a2ebb3.

This is just a cosmetic change which does not resolve any
security issue.

Link: https://github.com/alsa-project/alsa-lib/pull/527
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c

index 1469c7edc959060551f0be85f1e968b63d958f2f..a27e6786e79e64437a0f6160b1e161595c52752e 100644 (file)
@@ -643,11 +643,8 @@ static int input_stdio_open(snd_input_t **inputp, const char *file,
        char full_path[PATH_MAX];
        int err;
 
-       if (file[0] == '/') {
-               if (strstr(file, "/../"))
-                       return -ENOENT;
+       if (file[0] == '/')
                return snd_input_stdio_open(inputp, file, "r");
-       }
 
        /* search file in user specified include paths. These directories
         * are subdirectories of /usr/share/alsa.