[openssh-commits] [openssh] 06/07: upstream commit
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Oct 14 08:29:15 AEDT 2015
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 23fa695bb735f54f04d46123662609edb6c76767
Author: Damien Miller <djm at mindrot.org>
Date: Wed Oct 14 08:27:51 2015 +1100
upstream commit
revision 1.19
date: 2015/01/16 16:48:51; author: deraadt; state: Exp; lines: +3 -3; commitid: 0DYulI8hhujBHMcR;
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
---
openbsd-compat/realpath.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c
index e4729a8..a6ac09b 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: realpath.c,v 1.18 2014/10/19 03:56:28 doug Exp $ */
+/* $OpenBSD: realpath.c,v 1.19 2015/01/16 16:48:51 deraadt Exp $ */
/*
* Copyright (c) 2003 Constantin S. Svintsoff <kostik at iclub.nsu.ru>
*
@@ -42,6 +42,7 @@
#include <stddef.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
/* A slightly modified copy of this file exists in libexec/ld.so */
@@ -164,7 +165,7 @@ realpath(const char *path, char *resolved)
goto err;
}
if (S_ISLNK(sb.st_mode)) {
- if (symlinks++ > MAXSYMLINKS) {
+ if (symlinks++ > SYMLOOP_MAX) {
errno = ELOOP;
goto err;
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list