mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Move trap to after the directory is created.
This commit is contained in:
parent
0f7a2a5fbe
commit
ed9e8f5480
@ -11,7 +11,6 @@
|
|||||||
AWK=${AWK:-awk}
|
AWK=${AWK:-awk}
|
||||||
|
|
||||||
TMP="/tmp/$$"
|
TMP="/tmp/$$"
|
||||||
trap "rm -rf $TMP" 0 1 2 3 15
|
|
||||||
|
|
||||||
# Create a temporary directory with the proper permissions so no one can
|
# Create a temporary directory with the proper permissions so no one can
|
||||||
# intercept our temporary files and cause a security breach.
|
# intercept our temporary files and cause a security breach.
|
||||||
@ -24,6 +23,8 @@ fi
|
|||||||
umask "$OMASK"
|
umask "$OMASK"
|
||||||
unset OMASK
|
unset OMASK
|
||||||
|
|
||||||
|
trap "rm -rf $TMP" 0 1 2 3 15
|
||||||
|
|
||||||
INPUTFILE="$TMP/a"
|
INPUTFILE="$TMP/a"
|
||||||
DUPSFILE="$TMP/b"
|
DUPSFILE="$TMP/b"
|
||||||
NONDUPSFILE="$TMP/c"
|
NONDUPSFILE="$TMP/c"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user