search for: 2d99a120

Displaying 2 results from an estimated 2 matches for "2d99a120".

Did you mean: 2d991a0
2020 Apr 15
0
[PATCH nbdkit 8/9] eval, sh: Set $tmpdir before running the command, instead of globally.
...$tmpdir for the script. */ - if (setenv ("tmpdir", tmpdir, 1) == -1) { - nbdkit_error ("setenv: tmpdir=%s: %m", tmpdir); - exit (EXIT_FAILURE); - } nbdkit_debug ("eval: load: tmpdir: %s", tmpdir); diff --git a/plugins/sh/call.c b/plugins/sh/call.c index 2d99a120..b0aaf754 100644 --- a/plugins/sh/call.c +++ b/plugins/sh/call.c @@ -106,6 +106,7 @@ call3 (const char *wbuf, size_t wbuflen, /* sent to stdin */ const char **argv) /* script + parameters */ { const char *argv0 = argv[0]; /* script name, used in error messages */ + CLEAN...
2020 Apr 15
18
[PATCH nbdkit 0/9] Generic vector, and pass $nbdkit_stdio_safe to shell scripts.
This was a rather longer trip around the houses than I anticipated! The basic purpose of the patch series is to set $nbdkit_stdio_safe to "0" or "1" in sh and eval plugin scripts. To do that, I ended up adding a nicer way to manipulate environ lists, and to do that, I ended up adding a whole generic vector implementation which is applicable in a lot of different places.