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/intell…
Software Development
T 703-563-8115 | F 703-668-4359 |
john.ata@baesystems.com<mailto:john.ata@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/>