8c5069c637
* Acquire the lock before reading the current directory * Fix a file descriptor leak
* Acquire the lock before reading the current directory * Fix a file descriptor leak