From: Jaroslav Kysela Date: Mon, 19 Oct 2026 13:52:25 +0000 (+0200) Subject: Revert "conf: reject absolute include paths containing /../" X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=91c7927e3cd71119632b63f6454a0d284599740a;p=alsa-lib.git Revert "conf: reject absolute include paths containing /../" 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 --- diff --git a/src/conf.c b/src/conf.c index 1469c7ed..a27e6786 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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.