=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lorder/Attic/lorder.sh.gnm,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/lorder/Attic/lorder.sh.gnm 1996/06/26 05:36:09 1.4 --- src/usr.bin/lorder/Attic/lorder.sh.gnm 1996/09/16 01:16:27 1.5 *************** *** 1,5 **** #!/bin/sh - ! # $OpenBSD: lorder.sh.gnm,v 1.4 1996/06/26 05:36:09 deraadt Exp $ # $NetBSD: lorder.sh.gnm,v 1.3 1995/12/20 04:45:11 cgd Exp $ # # Copyright (c) 1990, 1993 --- 1,5 ---- #!/bin/sh - ! # $OpenBSD: lorder.sh.gnm,v 1.5 1996/09/16 01:16:27 deraadt Exp $ # $NetBSD: lorder.sh.gnm,v 1.3 1995/12/20 04:45:11 cgd Exp $ # # Copyright (c) 1990, 1993 *************** *** 50,60 **** esac # temporary files ! R=/tmp/_reference_$$ ! S=/tmp/_symbol_$$ # remove temporary files on HUP, INT, QUIT, PIPE, TERM ! trap "rm -f $R $S; exit 1" 1 2 3 13 15 # if the line ends in a colon, assume it's the first occurrence of a new # object file. Echo it twice, just to make sure it gets into the output. --- 50,69 ---- esac # temporary files ! TDIR=/tmp/_lorder$$ ! R=$TDIR/reference ! S=$TDIR/symbol + um=`umask` + umask 022 + if ! mkdir $TDIR ; then + echo temporary directory exists $TDIR + exit 1 + fi + umask $um + # remove temporary files on HUP, INT, QUIT, PIPE, TERM ! trap "rm -rf $TDIR; exit 1" 1 2 3 13 15 # if the line ends in a colon, assume it's the first occurrence of a new # object file. Echo it twice, just to make sure it gets into the output. *************** *** 88,91 **** sort +1 $R -o $R sort +1 $S -o $S join -j 2 -o 1.1 2.1 $R $S ! rm -f $R $S --- 97,100 ---- sort +1 $R -o $R sort +1 $S -o $S join -j 2 -o 1.1 2.1 $R $S ! rm -rf $TDIR