diff options
Diffstat (limited to 'app-text/mupdf/files/mupdf-1.21.1-fix-url-processing.patch')
-rw-r--r-- | app-text/mupdf/files/mupdf-1.21.1-fix-url-processing.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-text/mupdf/files/mupdf-1.21.1-fix-url-processing.patch b/app-text/mupdf/files/mupdf-1.21.1-fix-url-processing.patch new file mode 100644 index 000000000000..bebdf3909e81 --- /dev/null +++ b/app-text/mupdf/files/mupdf-1.21.1-fix-url-processing.patch @@ -0,0 +1,25 @@ +From 37757db262425d793b17b63821d9014d3655e50a Mon Sep 17 00:00:00 2001 +From: Sebastian Rasmussen <sebras@gmail.com> +Date: Thu, 1 Dec 2022 00:04:40 +0100 +Subject: [PATCH] gl: Use posix_spawnp() in order to search PATH for binaries. + +--- + platform/gl/gl-main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c +index d5ae69c95..271ac43a6 100644 +--- a/platform/gl/gl-main.c ++++ b/platform/gl/gl-main.c +@@ -122,7 +122,7 @@ static void open_browser(const char *uri) + argv[0] = (char*) browser; + argv[1] = (char*) uri; + argv[2] = NULL; +- err = posix_spawn(&pid, browser, NULL, NULL, argv, environ); ++ err = posix_spawnp(&pid, browser, NULL, NULL, argv, environ); + if (err) + fz_warn(ctx, "cannot spawn browser '%s': %s", browser, strerror(err)); + +-- +2.39.1 + |