Browse Source

some more extra mktemp randomness; millert@ ok

OPENBSD_3_4
avsm 21 years ago
parent
commit
ef01e76670
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/etc/daily
  2. +2
    -2
      src/etc/security

+ 3
- 3
src/etc/daily View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: daily,v 1.44 2003/06/03 22:56:56 mickey Exp $
# $OpenBSD: daily,v 1.45 2003/06/30 23:47:14 avsm Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94 # From: @(#)daily 8.2 (Berkeley) 1/25/94
# #
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
@ -12,8 +12,8 @@ if [ -f /etc/daily.local ]; then
. /etc/daily.local . /etc/daily.local
fi fi
TMP=`mktemp /tmp/_daily.XXXXXX` || exit 1
OUT=`mktemp /tmp/_security.XXXXXX` || {
TMP=`mktemp /tmp/_daily.XXXXXXXXXX` || exit 1
OUT=`mktemp /tmp/_security.XXXXXXXXXX` || {
rm -f ${TMP} rm -f ${TMP}
exit 1 exit 1
} }


+ 2
- 2
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: security,v 1.59 2003/06/15 22:12:32 grange Exp $
# $OpenBSD: security,v 1.60 2003/06/30 23:47:14 avsm Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93 # from: @(#)security 8.1 (Berkeley) 6/9/93
# #
@ -8,7 +8,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
umask 077 umask 077
DIR=`mktemp -d /tmp/_secure.XXXXXX` || exit 1
DIR=`mktemp -d /tmp/_secure.XXXXXXXXXX` || exit 1
ERR=$DIR/_secure1 ERR=$DIR/_secure1
TMP1=$DIR/_secure2 TMP1=$DIR/_secure2
TMP2=$DIR/_secure3 TMP2=$DIR/_secure3


Loading…
Cancel
Save