[patch] libstdc++/67173 Fix filesystem::canonical for Solaris 10.
Jonathan Wakely
jwakely@redhat.com
Thu Sep 17 11:33:00 GMT 2015
On 17/09/15 12:16 +0100, Jonathan Wakely wrote:
>So if we use a counter, what's a sane maximum? Is MAXSYMLINKS in
><sys/param.h> the value the kernel uses? 20 seems quite low, I was
>thinking of a much higher number.
Until very recently Linux seemed to hardcode it to 40:
https://github.com/torvalds/linux/blob/v4.1/fs/namei.c#L865
That changed in v4.2 and I'm not sure what it does not, if this is the
relevant bit of code it uses MAXSYMLINKS:
https://github.com/torvalds/linux/blob/v4.2/fs/namei.c#L1647
More information about the Gcc-patches
mailing list