Accept $TMP, $TMPDIR, $TEMP, and $TEMPDIR paths in purity check

This commit is contained in:
Tyson Whitehead 2020-07-20 17:46:08 -04:00
parent 872f2b76c1
commit 5796715bb7
No known key found for this signature in database
GPG Key ID: B22199763A27997B
1 changed files with 7 additions and 3 deletions

View File

@ -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() {