Last modified: 2013-06-24 14:46:18 UTC
We fchdir() down on recursion, but don't fchdir() back, so we can't find any files or directories "after" the first directory. Test case: | scfc@tools-login:~/tmp/test$ mkdir DIR && touch DIR/SUBFILE TOPFILE && take DIR TOPFILE | TOPFILE: No such file or directory | scfc@tools-login:~/tmp/test$
note that new version of take doesn't have this problem: https://github.com/benapetr/take
Yup. Izabug. (Relative paths were evaluated from a possibly changed cwd depending on whether some of the command line arguments were directories or not). Fixed by https://gerrit.wikimedia.org/r/#/c/70170/