#2399 util: handle ENOENT in _stripcwd() listdir loop
Merged by tkopecek. Opened by ktdreyer.
ktdreyer/koji stripcwd-lstat-enoent  into  master

Download 2399.patch

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.

Fixes: #2361

rebased onto 4c3038263efefb2eaf5d22a916f28941fda9c4c8

:thumbsup:

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

:thumbsup:

Commit d421faa8 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

Metadata