emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 579890f: ; * src/w32.c (faccessat): Fix last change


From: Eli Zaretskii
Subject: [Emacs-diffs] master 579890f: ; * src/w32.c (faccessat): Fix last change. (Bug#28207)
Date: Fri, 25 Aug 2017 11:02:26 -0400 (EDT)

branch: master
commit 579890f1c7703cd8ecfe2e56f52cc06fcd1b2442
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    ; * src/w32.c (faccessat): Fix last change.  (Bug#28207)
---
 src/w32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/w32.c b/src/w32.c
index c989af6..131361d 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -3910,7 +3910,7 @@ faccessat (int dirfd, const char * path, int mode, int 
flags)
 
   /* 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))
+  if (IS_DIRECTORY_SEP (path[strlen (path) - 1]) && mode == F_OK)
     mode |= D_OK;
 
   /* MSVCRT implementation of 'access' doesn't recognize D_OK, and its



reply via email to

[Prev in Thread] Current Thread [Next in Thread]