Skip to content

Commit ed9e8f5

Browse files
committed
Move trap to after the directory is created.
1 parent 0f7a2a5 commit ed9e8f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/findoidjoins/make_oidjoins_check

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
AWK=${AWK:-awk}
1212

1313
TMP="/tmp/$$"
14-
trap "rm -rf $TMP" 0 1 2 3 15
1514

1615
# Create a temporary directory with the proper permissions so no one can
1716
# intercept our temporary files and cause a security breach.
@@ -24,6 +23,8 @@ fi
2423
umask "$OMASK"
2524
unset OMASK
2625

26+
trap "rm -rf $TMP" 0 1 2 3 15
27+
2728
INPUTFILE="$TMP/a"
2829
DUPSFILE="$TMP/b"
2930
NONDUPSFILE="$TMP/c"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy