This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ftw() and AustinDraft



Hi,

The AustinDraft writes, that ftw should not return (-1) on 
EACCESS errors.

But there are 2 exceptions which we do ignore in the moment:

1. If one component of the "path" is not searchable for the user,
   we should return -1.
2. If the file has no read permissions for the user, we should
   return -1.

I have a small patch for this which works with all of my test cases
(LSB.os test suite). But I'm not sure if it is really correct, there
are to much other cases which I could break.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE GmbH            Deutschherrenstr. 15-19       D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B

Attachment: ftw.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]