about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-01 10:33:11 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-03 11:39:30 -0700
commit4f75b7a09a57e0d33ee0741c18114ce8ac5d6c3f (patch)
treef128c28bda6d3832f80be759a353918def8acd44 /stdlib
parent0c41943a4d6dc2ce7fbf1ee90d9000852f177a89 (diff)
downloadglibc-4f75b7a09a57e0d33ee0741c18114ce8ac5d6c3f.tar.gz
glibc-4f75b7a09a57e0d33ee0741c18114ce8ac5d6c3f.tar.xz
glibc-4f75b7a09a57e0d33ee0741c18114ce8ac5d6c3f.zip
Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/canonicalize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/canonicalize.c b/stdlib/canonicalize.c
index 876b482cf9..aeff804c10 100644
--- a/stdlib/canonicalize.c
+++ b/stdlib/canonicalize.c
@@ -1,5 +1,5 @@
 /* Return the canonical absolute name of a given file.
-   Copyright (C) 1996-2002,2004,2005,2006,2008 Free Software Foundation, Inc.
+   Copyright (C) 1996-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -21,11 +21,11 @@
 #include <string.h>
 #include <unistd.h>
 #include <limits.h>
-#include <sys/param.h>
 #include <sys/stat.h>
 #include <errno.h>
 #include <stddef.h>
 
+#include <eloop-threshold.h>
 #include <shlib-compat.h>
 
 /* Return the canonical absolute name of file NAME.  A canonical name
@@ -166,7 +166,7 @@ __realpath (const char *name, char *resolved)
 	      char *buf = __alloca (path_max);
 	      size_t len;
 
-	      if (++num_links > MAXSYMLINKS)
+	      if (++num_links > __eloop_threshold ())
 		{
 		  __set_errno (ELOOP);
 		  goto error;