Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.bin/send-pr use mktemp(1) for safe temp files.
details: https://anonhg.NetBSD.org/src/rev/b6adaa6e661b
branches: trunk
changeset: 565225:b6adaa6e661b
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Apr 02 11:11:22 2004 +0000
description:
use mktemp(1) for safe temp files.
diffstat:
gnu/usr.bin/send-pr/send-pr.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 1ff06b046c00 -r b6adaa6e661b gnu/usr.bin/send-pr/send-pr.sh
--- a/gnu/usr.bin/send-pr/send-pr.sh Fri Apr 02 10:44:22 2004 +0000
+++ b/gnu/usr.bin/send-pr/send-pr.sh Fri Apr 02 11:11:22 2004 +0000
@@ -82,9 +82,9 @@
fi
fi
-TEMP=$TMPDIR/p$$
-BAD=$TMPDIR/pbad$$
-REF=$TMPDIR/pf$$
+TEMP=`mktemp -t p`
+BAD=`mktemp -t pbad`
+REF=`mktemp -t pf`
# find a user name
if [ "$LOGNAME" = "" ]; then
Home |
Main Index |
Thread Index |
Old Index