Mercurial > emacs
comparison src/w32.c @ 80484:796bbedc63b1
(stat): When Vw32_get_true_file_attributes is Qlocal, get
attributes only for local files.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Thu, 10 Apr 2008 10:42:22 +0000 |
parents | 6e2a0297b94d |
children | 484a558118e3 |
comparison
equal
deleted
inserted
replaced
80483:2f6778cab766 | 80484:796bbedc63b1 |
---|---|
107 void globals_of_w32 (); | 107 void globals_of_w32 (); |
108 | 108 |
109 extern Lisp_Object Vw32_downcase_file_names; | 109 extern Lisp_Object Vw32_downcase_file_names; |
110 extern Lisp_Object Vw32_generate_fake_inodes; | 110 extern Lisp_Object Vw32_generate_fake_inodes; |
111 extern Lisp_Object Vw32_get_true_file_attributes; | 111 extern Lisp_Object Vw32_get_true_file_attributes; |
112 /* Defined in process.c for its own purpose. */ | |
113 extern Lisp_Object Qlocal; | |
114 | |
112 extern int w32_num_mouse_buttons; | 115 extern int w32_num_mouse_buttons; |
113 | 116 |
114 | 117 |
115 /* | 118 /* |
116 Initialization states | 119 Initialization states |
2487 FindClose (fh); | 2490 FindClose (fh); |
2488 } | 2491 } |
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)) |
2495 != INVALID_HANDLE_VALUE) | 2500 != INVALID_HANDLE_VALUE) |
2496 { | 2501 { |