diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2002-02-18 18:13:07 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2002-02-18 18:13:07 +0000 |
commit | e09f314dbf901dbc4fc90bc82f88279c73a17627 (patch) | |
tree | 4128a445422112f19bf1e80a550de5237f93dfbb /etc | |
parent | 63af7ae12d4b0af4e4d943a0ae4a4d9127151106 (diff) |
use mktemp; help & ok millert
Diffstat (limited to 'etc')
-rw-r--r-- | etc/security | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/etc/security b/etc/security index f927e03d395..46a26746e25 100644 --- a/etc/security +++ b/etc/security @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.49 2001/10/01 16:52:18 jakob Exp $ +# $OpenBSD: security,v 1.50 2002/02/18 18:13:06 pvalchev Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # @@ -8,7 +8,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin umask 077 -DIR=/tmp/_secure$$ +DIR=`mktemp -d /tmp/_secure.XXXXXX` || exit 1 ERR=$DIR/_secure1 TMP1=$DIR/_secure2 TMP2=$DIR/_secure3 @@ -16,12 +16,6 @@ TMP3=$DIR/_secure4 LIST=$DIR/_secure5 OUTPUT=$DIR/_secure6 -if ! mkdir $DIR ; then - echo "tmp directory ${DIR} already exists, looks like:" - ls -alqF $DIR - exit 1 -fi - trap 'rm -rf $DIR; exit 1' 0 1 2 3 13 15 # Check the master password file syntax. |