=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lorder/lorder.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/lorder/lorder.sh 1996/06/26 05:36:09 1.2 --- src/usr.bin/lorder/lorder.sh 1996/09/16 01:16:27 1.3 *************** *** 1,5 **** #!/bin/sh - ! # $OpenBSD: lorder.sh,v 1.2 1996/06/26 05:36:09 deraadt Exp $ # $NetBSD: lorder.sh,v 1.3 1995/04/24 07:38:52 cgd Exp $ # # Copyright (c) 1990, 1993 --- 1,5 ---- #!/bin/sh - ! # $OpenBSD: lorder.sh,v 1.3 1996/09/16 01:16:27 deraadt Exp $ # $NetBSD: lorder.sh,v 1.3 1995/04/24 07:38:52 cgd Exp $ # # Copyright (c) 1990, 1993 *************** *** 50,58 **** 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 --- 50,67 ---- 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 -f $R $S; exit 1" 1 2 3 13 15 *************** *** 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