Fix nftw when called with FTW_CHDIR and FTW_DEPTH
commita6cdfdfff38584cadec40b6d6f2df2651e0b34b8
authorJohn Ata <john.ata@baesystems.com>
Mon, 17 Oct 2016 18:47:02 +0000 (17 14:47 -0400)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Thu, 20 Oct 2016 19:46:25 +0000 (20 21:46 +0200)
tree07a4e05bea8cbdb8b1d721976c047b320d58bf52
parent545beca17885560298580b51619979529a309360
Fix nftw when called with FTW_CHDIR and FTW_DEPTH

Change directory back to the parent before processing
the directory (after the contents have already been processed).

Signed-off-by: John Ata <john.ata@baesystems.com>
libc/misc/ftw/ftw.c