• vasil's avatar
    branches/zip: · b8f97058
    vasil authored
    When scanning a directory readdir() is called and stat() after it,
    if a file is deleted between the two calls stat will fail and the
    whole precedure will fail. Change this behavior to continue with the
    next entry if stat() fails because of nonexistent file. This is
    transparent change as it will make it look as if the file was deleted
    before the readdir() call.
    
    This change is needed in order to fix
    https://svn.innodb.com/mantis/view.php?id=174
    in which we need to abort if os_file_readdir_next_file()
    encounters "real" errors.
    
    Approved by:	Marko, Pekka (rb://177)
    b8f97058
os0file.c 105 KB