From ed9e8f5480ba0bc980e95afafd50f0fdbc02af8c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 3 Nov 2004 23:06:52 +0000 Subject: [PATCH] Move trap to after the directory is created. --- contrib/findoidjoins/make_oidjoins_check | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/findoidjoins/make_oidjoins_check b/contrib/findoidjoins/make_oidjoins_check index 4fc9e61875..508d435c6d 100755 --- a/contrib/findoidjoins/make_oidjoins_check +++ b/contrib/findoidjoins/make_oidjoins_check @@ -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"