delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/10/13:25:21

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 10 Mar 2009 19:24:53 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: enlarge MAXSYMLINKS
Message-ID: <20090310182453.GC9322@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <588311DB-B528-4386-8C6D-A14A37F85737 AT free DOT fr>
MIME-Version: 1.0
In-Reply-To: <588311DB-B528-4386-8C6D-A14A37F85737@free.fr>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mar 10 19:05, Denis Excoffier wrote:
>
> Again about symbolic links, here is some new inputs:
>
> 1) MAXSYMLINKS is no longer used in modern Cygwin's;
>    indeed, cygwin-1.5.25-15 uses MAX_LINK_DEPTH and
>    cygwin-1.7.0-42 uses SYMLOOP_MAX; both are set to 10
>    (in ./winsup/cygwin/path.h for 1.5 and in
>    ./winsup/cygwin/include/limits.h for 1.7)
>
> 2) whether the filesystem is NTFS or not makes no difference;
>    whether the symlinks are created using winsymlinks or nowinsymlinks
>    makes no difference
>
> 3) the only clean way to make cygwin1.dll accept a chain of 32 symlinks
>    (instead of 10) is through recompilation

You know that _POSIX_SYMLOOP_MAX is 8 and using everything beyond that
value is non-portable and just curtesy, right?  Setting SYMLOOP_MAX to
10 is setting it to some arbitrary value >= _POSIX_SYMLOOP_MAX which
should be sufficient in all cases.

The MAXSYMLINKS value you're referring to in your original mail has
nothing to do with Cygwin.  You found it in newlib/libc/sys/rtems which
is, no surprise I hope, RTEMS specific.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019