e35b571 util: handle ENOENT in _stripcwd() listdir loop

2 files Authored by ktdreyer 3 years ago, Committed by tkopecek 3 years ago,
    util: handle ENOENT in _stripcwd() listdir loop
    
    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.
    
        
file modified
+7 -1
file modified
+19 -0