Skip to content
Snippets Groups Projects
Commit ed9e8f54 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Move trap to after the directory is created.

parent 0f7a2a5f
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@
AWK=${AWK:-awk}
TMP="/tmp/$$"
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.
......@@ -24,6 +23,8 @@ fi
umask "$OMASK"
unset OMASK
trap "rm -rf $TMP" 0 1 2 3 15
INPUTFILE="$TMP/a"
DUPSFILE="$TMP/b"
NONDUPSFILE="$TMP/c"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment