[PATCH v2 3/9] linux: Add __readdir_unlocked

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Oct 15 14:10:09 GMT 2020



On 13/10/2020 12:43, Florian Weimer wrote:
> * Adhemerval Zanella via Libc-alpha:
> 
>> diff --git a/sysdeps/unix/sysv/linux/readdir_r.c b/sysdeps/unix/sysv/linux/readdir_r.c
>> index 0069041394..a01d2845a6 100644
>> --- a/sysdeps/unix/sysv/linux/readdir_r.c
>> +++ b/sysdeps/unix/sysv/linux/readdir_r.c
>> @@ -25,89 +25,44 @@ __readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result)
> 
>> +      /* The name is too long.  Ignore this file.  */
>> +      dirp->errcode = ENAMETOOLONG;
>> +      dp->d_ino = 0;
> 
> I believe the dp->d_ino assignment is no longer needed.  Rest looks okay
> to me.

Ack, I removed the assignment. 


More information about the Libc-alpha mailing list