changeset 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 2f6778cab766
children f1f27e9c15d7
files src/w32.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32.c	Thu Apr 10 09:48:22 2008 +0000
+++ b/src/w32.c	Thu Apr 10 10:42:22 2008 +0000
@@ -109,6 +109,9 @@
 extern Lisp_Object Vw32_downcase_file_names;
 extern Lisp_Object Vw32_generate_fake_inodes;
 extern Lisp_Object Vw32_get_true_file_attributes;
+/* Defined in process.c for its own purpose.  */
+extern Lisp_Object Qlocal;
+
 extern int w32_num_mouse_buttons;
 
 
@@ -2489,6 +2492,8 @@
     }
 
   if (!NILP (Vw32_get_true_file_attributes)
+      && !(EQ (vw32_get_true_file_attributes, Qlocal) && 
+	   GetDriveType (name) == DRIVE_FIXED)
       /* No access rights required to get info.  */
       && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING,
 			   FILE_FLAG_BACKUP_SEMANTICS, NULL))