After we call listdir(), another thread or process might delete files from the current directory. We cannot always expect lstat() to succeed in a loop over the initial listdir entries.
If lstat() raises ENOENT, consider this file deleted and move on.
After we call
listdir(), another thread or process might delete files from the current directory. We cannot always expectlstat()to succeed in a loop over the initial listdir entries.If
lstat()raisesENOENT, consider this file deleted and move on.Fixes: #2361