Hi all,

In using ftw/nftw, I've discovered a bug when using FTW_CHDIR and FTW_DEPTH.  
After changing the working directory to a subdirectory, nftw would process the 
contents fine.  However, it would then try and process the directory itself 
while still in that directory and then switch back to the parent.  This would 
result in an error (ENOENT).  This patch will change working directories to the 
parent before processing the directory itself.

Take care,
----
John Ata, CISSP
Senior Principal Software Engineer
Electronics Systems
STOP Operating 
System<http://www.baesystems.com/en-us/our-company/inc-businesses/intelligence-and-security/capabilities-and-services/enhanced-cybersecurity/products/cross/os>
 Software Development

T 703-563-8115 | F 703-668-4359 | 
john....@baesystems.com<mailto:john....@baesystems.com>
http://www.baesystems.com/csp

[cid:image001.png@01D138BC.8E54E330][cid:image003.png@01D138BC.8E54E330]<http://www.twitter.com/baesystemsinc>[cid:image004.png@01D138BC.8E54E330]<http://www.youtube.com/baesystemsinc>[cid:image006.png@01D138BC.8E54E330]<http://www.flickr.com/photos/baesystemsinc/>

Attachment: 0001-Fix-ntfw-when-called-with-FTW_CHDIR-and-FTW_DEPTH-to.patch
Description: 0001-Fix-ntfw-when-called-with-FTW_CHDIR-and-FTW_DEPTH-to.patch

_______________________________________________
devel mailing list
devel@uclibc-ng.org
http://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel

Reply via email to