mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Honor TMPDIR.
Add the script name to the tmp directory name. Move trap up now that the dir is more unique.
This commit is contained in:
@ -10,7 +10,8 @@
|
||||
# Caution: you may need to use GNU awk.
|
||||
AWK=${AWK:-awk}
|
||||
|
||||
TMP="/tmp/$$"
|
||||
TMP="${TMPDIR:-/tmp}/make_oidjoins_check.$$"
|
||||
trap "rm -rf $TMP" 0 1 2 3 15
|
||||
|
||||
# Create a temporary directory with the proper permissions so no one can
|
||||
# intercept our temporary files and cause a security breach.
|
||||
@ -23,8 +24,6 @@ fi
|
||||
umask "$OMASK"
|
||||
unset OMASK
|
||||
|
||||
trap "rm -rf $TMP" 0 1 2 3 15
|
||||
|
||||
INPUTFILE="$TMP/a"
|
||||
DUPSFILE="$TMP/b"
|
||||
NONDUPSFILE="$TMP/c"
|
||||
|
Reference in New Issue
Block a user