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

No commits found

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 4c30382

3 years ago

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

3 years ago

Commit d421faa fixes this pull-request

Pull-Request has been merged by tkopecek

3 years ago

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

3 years ago