[PATCH v3 2/3] realpath: Set errno to ENAMETOOLONG for result larger than PATH_MAX [BZ #28770]

Siddhesh Poyarekar siddhesh@sourceware.org
Sat Jan 22 03:47:52 GMT 2022


On 22/01/2022 04:52, Joseph Myers wrote:
> On Thu, 20 Jan 2022, Siddhesh Poyarekar via Libc-alpha wrote:
> 
>> diff --git a/stdlib/tst-realpath-toolong.c b/stdlib/tst-realpath-toolong.c
> 
>> +  char buf[PATH_MAX + 1];
> 
> This has broken the testsuite build for Hurd.
> 
> tst-realpath-toolong.c: In function 'do_test':
> tst-realpath-toolong.c:37:12: error: 'PATH_MAX' undeclared (first use in this function)
> 

Sorry I missed that, I'll post a fix.  I was getting a different build 
error on hurd which prevented me from seeing this.  I'm rebuilding my 
build-many-glibcs to see if that fixes it.

Thanks,
Siddhesh


More information about the Libc-alpha mailing list