python/hypothesis: update to 6.121.0
[oi-userland.git] / components / print / libcupsfilters / patches / 03-execvpe.patch
blob9dc6f6a61fa4a38456d719925da53570c68a4624
1 illumos doesn't have execvpe so we need to emulate it.
3 --- libcupsfilters-2.0.0/cupsfilters/ghostscript.c.orig 2023-09-22 00:21:04.000000000 +0200
4 +++ libcupsfilters-2.0.0/cupsfilters/ghostscript.c 2023-11-05 09:15:49.880764443 +0100
5 @@ -456,6 +456,7 @@
6 char *msg;
7 int status = 65536;
8 int wstatus;
9 + extern char **environ;
11 // Put Ghostscript command line argument into an array for the "exec()"
12 // call
13 @@ -613,7 +614,8 @@
16 // Execute Ghostscript command line ...
17 - execvpe(filename, gsargv, envp);
18 + environ = envp;
19 + execvp(filename, gsargv);
20 if (log) log(ld, CF_LOGLEVEL_ERROR,
21 "cfFilterGhostscript: Unable to launch Ghostscript: %s: %s",
22 filename, strerror(errno));