mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Fix file-name completion on network shares
* src/w32.c (faccessat): Don't assume that F_OK is non-zero. (Bug#28207)
This commit is contained in:
parent
690512d2af
commit
0d2b409398
@ -3908,7 +3908,9 @@ faccessat (int dirfd, const char * path, int mode, int flags)
|
||||
path = fullname;
|
||||
}
|
||||
|
||||
if (IS_DIRECTORY_SEP (path[strlen (path) - 1]) && (mode & F_OK) != 0)
|
||||
/* When dired.c calls us with F_OK and a trailing slash, it actually
|
||||
wants to know whether PATH is a directory. */
|
||||
if (IS_DIRECTORY_SEP (path[strlen (path) - 1]) && ((mode & F_OK) == F_OK))
|
||||
mode |= D_OK;
|
||||
|
||||
/* MSVCRT implementation of 'access' doesn't recognize D_OK, and its
|
||||
|
Loading…
Reference in New Issue
Block a user