aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2008-05-10 07:56:42 +0000
committerEli Zaretskii2008-05-10 07:56:42 +0000
commitfbc4a2f453b86bf2281e00650ac08372149c9458 (patch)
treea7ff759e186b8478de5068e9abcc4cd815c78f54 /src
parent47b82151d2a4fb6e928839e7113d57ec4143234b (diff)
downloademacs-fbc4a2f453b86bf2281e00650ac08372149c9458.tar.gz
emacs-fbc4a2f453b86bf2281e00650ac08372149c9458.zip
(stat): Fix test of Vw32_get_true_file_attributes against the value returned
by GetDriveType.
Diffstat (limited to 'src')
-rw-r--r--src/w32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32.c b/src/w32.c
index 894160a275d..aa6c21e4402 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -2491,9 +2491,9 @@ stat (const char * path, struct stat * buf)
2491 } 2491 }
2492 } 2492 }
2493 2493
2494 if (!NILP (Vw32_get_true_file_attributes) 2494 if (!(NILP (Vw32_get_true_file_attributes)
2495 && !(EQ (Vw32_get_true_file_attributes, Qlocal) && 2495 || (EQ (Vw32_get_true_file_attributes, Qlocal) &&
2496 GetDriveType (name) == DRIVE_FIXED) 2496 GetDriveType (name) != DRIVE_FIXED))
2497 /* No access rights required to get info. */ 2497 /* No access rights required to get info. */
2498 && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, 2498 && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING,
2499 FILE_FLAG_BACKUP_SEMANTICS, NULL)) 2499 FILE_FLAG_BACKUP_SEMANTICS, NULL))