search for: nbdkitshco6mc9

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

2020 Apr 15
0
[PATCH nbdkit 8/9] eval, sh: Set $tmpdir before running the command, instead of globally.
...shell scripts to use for temporary files. Previously we set this environment variable globally (in .load()), but this means the environment variable can be leaked into undesirable places, eg. into the --run script: $ nbdkit sh - --run 'echo tmpdir: $tmpdir' </dev/null tmpdir: /tmp/nbdkitshco6MC9 By setting it only just before running the shell command it should only be visible there. Note also we no longer use setenv(3), but instead we manipulate environ. After this change: $ ./nbdkit sh - --run 'echo tmpdir: $tmpdir' </dev/null tmpdir: --- plugins/sh/call.h | 2 ++...
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.