summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/mktemp.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2007-10-21 11:09:30 +0000
committertobias <tobias@openbsd.org>2007-10-21 11:09:30 +0000
commit2072f0c7059b0cfacc66527be1b6a1a663740e4e (patch)
treeb34e9056ea6493fd25cf5d254bf03995111605f0 /lib/libc/stdio/mktemp.c
parentReplace Cardbus_conf_* calls by cardbus_conf_* ones. This solves the (diff)
downloadwireguard-openbsd-2072f0c7059b0cfacc66527be1b6a1a663740e4e.tar.xz
wireguard-openbsd-2072f0c7059b0cfacc66527be1b6a1a663740e4e.zip
Comment fix about time consumption of _gettemp.
FreeBSD did this in revision 1.20. OK deraadt@, krw@
Diffstat (limited to 'lib/libc/stdio/mktemp.c')
-rw-r--r--lib/libc/stdio/mktemp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index 5304723166f..687ec8c7063 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mktemp.c,v 1.19 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: mktemp.c,v 1.20 2007/10/21 11:09:30 tobias Exp $ */
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
@@ -118,10 +118,7 @@ _gettemp(char *path, int *doopen, int domkdir, int slen)
}
start = trv + 1;
- /*
- * check the target directory; if you have six X's and it
- * doesn't exist this runs for a *very* long time.
- */
+ /* Check the target directory. */
if (doopen || domkdir) {
for (;; --trv) {
if (trv <= path)