[PATCH] Fix readdir_r with long file names
Paul Eggert
eggert@cs.ucla.edu
Tue Mar 1 23:25:00 GMT 2016
On 03/01/2016 03:07 PM, Florian Weimer wrote:
> GCC does not produce a warning for taking the size of a
> struct with a flexible member, or for using it in a non-pointer
> declarator, so it does only half of what we want.
Ouch. That's annoying, but I guess C11 requires it. At least we get
half a loaf....
> And at the cost of
> changing sizeof (struct dirent), which can't be a good thing.
Any program that depends on sizeof (struct dirent) is broken already, so
this isn't that worrisome.
More information about the Libc-alpha
mailing list