From f2fb1142dabd344f37987a24b995a8c6cec5d9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20Kocao=C4=9Flu?= Date: Mon, 9 Sep 2024 02:35:50 +0300 Subject: [PATCH] stest: fix execution of `file` command --- src/c/util/core/stest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/util/core/stest.c b/src/c/util/core/stest.c index 7f6c674c..027a8730 100644 --- a/src/c/util/core/stest.c +++ b/src/c/util/core/stest.c @@ -121,7 +121,7 @@ const char *getmime(const char *path) dup2(pipefd[1], STDOUT_FILENO); close(pipefd[0]); close(pipefd[1]); - execlp("file", "-00", "-b", "--mime-type", "--", path, NULL); + execlp("file", "file", "-00", "-b", "--mime-type", "--", path, NULL); exit(EXIT_SUCCESS); }