fexist: may return 0 if no permissions to read #7
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
During one of my many random reviews I realized fexist() may return 0 (file does not exist) while it does actually exist.
Need to test but if user has no permissions to the file, NR_open may fail with -EACCESS. fexist currently checks if there is any error, so if the file does exist and if it does indeed return error -EACCESS, fexist will return 0 while it should return 1.
Need to test