From 4f75b7a09a57e0d33ee0741c18114ce8ac5d6c3f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 1 Aug 2012 10:33:11 -0700 Subject: Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX. --- hurd/lookup-retry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hurd') diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c index 4fa2a21..c95ca0f 100644 --- a/hurd/lookup-retry.c +++ b/hurd/lookup-retry.c @@ -24,6 +24,7 @@ #include #include #include <_itoa.h> +#include /* Translate the error from dir_lookup into the error the user sees. */ static inline error_t @@ -103,7 +104,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port) /* Fall through. */ case FS_RETRY_NORMAL: - if (nloops++ >= SYMLOOP_MAX) + if (nloops++ >= __eloop_threshold ()) { __mach_port_deallocate (__mach_task_self (), *result); return ELOOP; @@ -180,7 +181,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port) dirport = INIT_PORT_CRDIR; if (*result != MACH_PORT_NULL) __mach_port_deallocate (__mach_task_self (), *result); - if (nloops++ >= SYMLOOP_MAX) + if (nloops++ >= __eloop_threshold ()) return ELOOP; file_name = &retryname[1]; break; -- cgit v1.1