Purity checking should accept $TMP and not just /tmp

This commit is contained in:
Tyson Whitehead 2020-07-20 17:46:08 -04:00 committed by Frederik Rietdijk
parent 176d5e090a
commit fb777be7d2
1 changed files with 3 additions and 3 deletions

View File

@ -69,9 +69,9 @@ badPath() {
# directory (including the build directory). # directory (including the build directory).
test \ test \
"$p" != "/dev/null" -a \ "$p" != "/dev/null" -a \
"${p:0:${#NIX_STORE}}" != "$NIX_STORE" -a \ "${p#${NIX_STORE}}" = "$p" -a \
"${p:0:4}" != "/tmp" -a \ "${p#${TMP:-/tmp}}" = "$p" -a \
"${p:0:${#NIX_BUILD_TOP}}" != "$NIX_BUILD_TOP" "${p#${NIX_BUILD_TOP}}" = "$p"
} }
expandResponseParams() { expandResponseParams() {