Browse Source

use mktemp; help & ok millert

OPENBSD_3_1
pvalchev 23 years ago
parent
commit
8f3f4efdd9
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      src/etc/security

+ 2
- 8
src/etc/security View File

@ -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.


Loading…
Cancel
Save