2 ms·
Hmm. I see issues about finding executable-but-not-readable files, but nothing about `access(X_OK)` specifically (though GitLab's search may be failing here). A
by mathstuf 3y ago
Hmm. I see issues about finding executable-but-not-readable files, but nothing about `access(X_OK)` specifically (though GitLab's search may be failing here). Anyways, there are a number of…unfortunate behaviors that are baked in too deeply and take far longer to uproot than anyone likes. For example, the `EXISTS` predicate checked for readability…probably what was usually wanted, but sadly falls over when a broken symlink is left laying around. That one was fixed recently, but they crop up often enough.
Also note that while Windows might have POSIX APIs, sometimes the semantics are just not quite right. File permissions is one such place where things "exist" but act like they're in an alternate dimension (e.g., what would `umask` do on Windows?).