diff options
author | Michael Greenberg <michael.greenberg@pomona.edu> | 2020-04-29 20:04:21 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-05-15 16:24:38 +1000 |
commit | 2b6a5a30eeae293ca50d849bc1dae15f27044f99 (patch) | |
tree | a3035150efc600620203256ead9f34a39571958c /src/bltin/printf.1 | |
parent | expand: Remove unused expandmeta() flag parameter (diff) | |
download | dash-2b6a5a30eeae293ca50d849bc1dae15f27044f99.tar.gz dash-2b6a5a30eeae293ca50d849bc1dae15f27044f99.zip |
shell: mktokens relative TMPDIR
The mktokens script fails when /tmp isn't writable (e.g., when building in a sandbox with a different TMPDIR). Replace absolute references to /tmp to relative references to TMPDIR. If TMPDIR is unset or null, default to /tmp. The mkbuiltins script was already hardened to work relative to TMPDIR, also defaulting to /tmp. v2 ensures that TMPDIR is quoted. v3 adds an extra quotation that prevents extra pathname expansions. Signed-off-by: Michael Greenberg <michael.greenberg@pomona.edu> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/bltin/printf.1')
0 files changed, 0 insertions, 0 deletions