# HG changeset patch # User Jason Rumney # Date 1207824142 0 # Node ID 796bbedc63b1fac27cddf1aa9ae875c21c6edeba # Parent 2f6778cab766457e27264185d059a50b78572765 (stat): When Vw32_get_true_file_attributes is Qlocal, get attributes only for local files. diff -r 2f6778cab766 -r 796bbedc63b1 src/w32.c --- 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))