summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-10-21 11:09:31 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-10-21 11:09:31 +0000
commitb0690652c0162f80e4f038c62342f61912eba959 (patch)
treeba768bf7bf6286ae29dab47867d92fa29f71cb21
parentd4099d65e38e27949374fdd204d76a7e3b648d90 (diff)
Comment fix about time consumption of _gettemp.
FreeBSD did this in revision 1.20. OK deraadt@, krw@
-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)