diff options
author | Tyson Whitehead <twhitehead@gmail.com> | 2020-07-20 17:46:08 -0400 |
---|---|---|
committer | Tyson Whitehead <twhitehead@gmail.com> | 2020-09-10 12:39:08 -0400 |
commit | 5796715bb707bf88738f04a531925d13ee4cf6e7 (patch) | |
tree | ee91ca9e441e6a944362f1f1159c3f6192abba95 /pkgs/build-support/wrapper-common | |
parent | 872f2b76c1202bf9ca53d79620c0bf74909c8b80 (diff) |
Accept $TMP, $TMPDIR, $TEMP, and $TEMPDIR paths in purity check
Diffstat (limited to 'pkgs/build-support/wrapper-common')
-rw-r--r-- | pkgs/build-support/wrapper-common/utils.bash | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/build-support/wrapper-common/utils.bash b/pkgs/build-support/wrapper-common/utils.bash index ce569ac2b8c4..d164982b4345 100644 --- a/pkgs/build-support/wrapper-common/utils.bash +++ b/pkgs/build-support/wrapper-common/utils.bash @@ -69,9 +69,13 @@ badPath() { # directory (including the build directory). test \ "$p" != "/dev/null" -a \ - "${p#${NIX_STORE}}" = "$p" -a \ - "${p#${TMP:-/tmp}}" = "$p" -a \ - "${p#${NIX_BUILD_TOP}}" = "$p" + "${p#${NIX_STORE}}" = "$p" -a \ + "${p#${NIX_BUILD_TOP}}" = "$p" -a \ + "${p#/tmp}" = "$p" -a \ + "${p#${TMP:-/tmp}}" = "$p" -a \ + "${p#${TMPDIR:-/tmp}}" = "$p" -a \ + "${p#${TEMP:-/tmp}}" = "$p" -a \ + "${p#${TEMPDIR:-/tmp}}" = "$p" } expandResponseParams() { |