From d807ba646948eb178ee92c684578dd96e94873fd Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 18 Jan 2024 09:44:23 +0100 Subject: Call wordexp() with WRDE_NOCMD --- cbs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbs.h b/cbs.h index 986cccc..b94f7b7 100644 --- a/cbs.h +++ b/cbs.h @@ -781,7 +781,7 @@ pcquery(struct strv *vec, char *lib, int flags) /* Remove trailing newline */ p[n - 1] = 0; - switch (wordexp(p, &we, 0)) { + switch (wordexp(p, &we, WRDE_NOCMD)) { case WRDE_BADCHAR: case WRDE_BADVAL: case WRDE_SYNTAX: -- cgit v1.2.3