summaryrefslogtreecommitdiff
path: root/openbsd-compat/mktemp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-09-23 10:42:02 +1000
committerDamien Miller <djm@mindrot.org>2011-09-23 10:42:02 +1000
commit834e82031749cb039ad9258314e62ebf25ca4365 (patch)
tree6a3fc8c3424fe03ee402dc3bf91cfd19a9c39e6e /openbsd-compat/mktemp.c
parentacdf3fbdba747125c1d8d2dce8c5ffb3ddd23f58 (diff)
downloadopenssh-git-834e82031749cb039ad9258314e62ebf25ca4365.tar.gz
- tobias@cvs.openbsd.org 2007/10/21 11:09:30
[mktemp.c] Comment fix about time consumption of _gettemp. FreeBSD did this in revision 1.20. OK deraadt@, krw@
Diffstat (limited to 'openbsd-compat/mktemp.c')
-rw-r--r--openbsd-compat/mktemp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/openbsd-compat/mktemp.c b/openbsd-compat/mktemp.c
index 2285c84d..5529bee7 100644
--- a/openbsd-compat/mktemp.c
+++ b/openbsd-compat/mktemp.c
@@ -1,7 +1,7 @@
/* THIS FILE HAS BEEN MODIFIED FROM THE ORIGINAL OPENBSD SOURCE */
/* Changes: Removed mktemp */
-/* $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.
@@ -112,10 +112,7 @@ _gettemp(path, doopen, domkdir, 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)