OSDN Git Service

* fhandler.h (fhandler_base::get_namehash): Use NT native path.
authorcorinna <corinna>
Thu, 16 Aug 2007 14:10:04 +0000 (14:10 +0000)
committercorinna <corinna>
Thu, 16 Aug 2007 14:10:04 +0000 (14:10 +0000)
* fhandler_disk_file.cc (readdir_get_ino): Ditto in call to
hash_path_name.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_disk_file.cc

index 9c953eb..bc701fd 100644 (file)
@@ -1,5 +1,11 @@
 2007-08-16  Corinna Vinschen  <corinna@vinschen.de>
 
+       * fhandler.h (fhandler_base::get_namehash): Use NT native path.
+       * fhandler_disk_file.cc (readdir_get_ino): Ditto in call to
+       hash_path_name.
+
+2007-08-16  Corinna Vinschen  <corinna@vinschen.de>
+
        * ntdll.h (RtlCreateUnicodeStringFromAsciiz): Fix declaration.
        (RtlUpcaseUnicodeChar): Declare.
        * path.cc (hash_path_name): Split into three functions, taking
index 56abcfb..665dd51 100644 (file)
@@ -251,7 +251,7 @@ class fhandler_base
   bool has_attribute (DWORD x) const {return pc.has_attribute (x);}
   const char *get_name () const { return pc.normalized_path; }
   const char *get_win32_name () { return pc.get_win32 (); }
-  __ino64_t get_namehash () { return namehash ?: namehash = hash_path_name (0, get_win32_name ()); }
+  __ino64_t get_namehash () { return namehash ?: namehash = hash_path_name (0, pc.get_nt_native_path ()); }
   /* Returns name used for /proc/<pid>/fd in buf. */
   virtual char *get_proc_fd_name (char *buf);
 
index 049928c..cccd440 100644 (file)
@@ -1682,7 +1682,7 @@ readdir_get_ino (const char *path, bool dot_dot)
        ino = st.st_ino;
     }
   else if (!pc.hasgood_inode ())
-    ino = hash_path_name (0, pc);
+    ino = hash_path_name (0, pc.get_nt_native_path ());
   else if (NT_SUCCESS (NtOpenFile (&hdl, READ_CONTROL,
                                   pc.get_object_attr (attr, sec_none_nih),
                                   &io, FILE_SHARE_VALID_FLAGS,