From 9b25e90266b298af50aef11b5cd203d39b69ee46 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 15 Sep 1996 20:29:41 +0000 Subject: [PATCH] setup trap after mkdir --- etc/security | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/security b/etc/security index eeca396c8fc..bb6b660af1e 100644 --- a/etc/security +++ b/etc/security @@ -1,6 +1,6 @@ #!/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 @@ -14,15 +14,15 @@ TMP3=$DIR/_secure4 LIST=$DIR/_secure5 OUTPUT=$DIR/_secure6 -trap 'rm -rf $DIR' 0 -umask 077 if ! mkdir $DIR ; then printf "tmp directory %s already exists, looks like:\n" $DIR ls -alF $DIR exit 1 fi +trap 'rm -rf $DIR' 0 + # Check the master password file syntax. MP=/etc/master.passwd awk -F: '{ -- 2.20.1