aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-04-10 10:42:22 +0000
committerJason Rumney2008-04-10 10:42:22 +0000
commitac0af1135c279f01e8e20176414b4c9c43e7304c (patch)
tree84530af9dfc153ed97549c1461210785304e383a /src
parent4429f88c1942b0fb05b83ace0df42e56481a66e5 (diff)
downloademacs-ac0af1135c279f01e8e20176414b4c9c43e7304c.tar.gz
emacs-ac0af1135c279f01e8e20176414b4c9c43e7304c.zip
(stat): When Vw32_get_true_file_attributes is Qlocal, get
attributes only for local files.
Diffstat (limited to 'src')
-rw-r--r--src/w32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index e40f9a4b289..bc26d75e78e 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -109,6 +109,9 @@ void globals_of_w32 ();
109extern Lisp_Object Vw32_downcase_file_names; 109extern Lisp_Object Vw32_downcase_file_names;
110extern Lisp_Object Vw32_generate_fake_inodes; 110extern Lisp_Object Vw32_generate_fake_inodes;
111extern Lisp_Object Vw32_get_true_file_attributes; 111extern Lisp_Object Vw32_get_true_file_attributes;
112/* Defined in process.c for its own purpose. */
113extern Lisp_Object Qlocal;
114
112extern int w32_num_mouse_buttons; 115extern int w32_num_mouse_buttons;
113 116
114 117
@@ -2489,6 +2492,8 @@ stat (const char * path, struct stat * buf)
2489 } 2492 }
2490 2493
2491 if (!NILP (Vw32_get_true_file_attributes) 2494 if (!NILP (Vw32_get_true_file_attributes)
2495 && !(EQ (vw32_get_true_file_attributes, Qlocal) &&
2496 GetDriveType (name) == DRIVE_FIXED)
2492 /* No access rights required to get info. */ 2497 /* No access rights required to get info. */
2493 && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, 2498 && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING,
2494 FILE_FLAG_BACKUP_SEMANTICS, NULL)) 2499 FILE_FLAG_BACKUP_SEMANTICS, NULL))