Browse Source

setup trap after mkdir

OPENBSD_2_0
deraadt 28 years ago
parent
commit
9dcf23df2c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/security

+ 3
- 3
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: security,v 1.7 1996/09/15 20:12:18 deraadt Exp $
# $OpenBSD: security,v 1.8 1996/09/15 20:29:41 deraadt Exp $
# #
PATH=/sbin:/usr/sbin:/bin:/usr/bin PATH=/sbin:/usr/sbin:/bin:/usr/bin
@ -14,15 +14,15 @@ TMP3=$DIR/_secure4
LIST=$DIR/_secure5 LIST=$DIR/_secure5
OUTPUT=$DIR/_secure6 OUTPUT=$DIR/_secure6
trap 'rm -rf $DIR' 0
umask 077
if ! mkdir $DIR ; then if ! mkdir $DIR ; then
printf "tmp directory %s already exists, looks like:\n" $DIR printf "tmp directory %s already exists, looks like:\n" $DIR
ls -alF $DIR ls -alF $DIR
exit 1 exit 1
fi fi
trap 'rm -rf $DIR' 0
# Check the master password file syntax. # Check the master password file syntax.
MP=/etc/master.passwd MP=/etc/master.passwd
awk -F: '{ awk -F: '{


Loading…
Cancel
Save