]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Disable calling
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 24 Apr 2008 17:15:17 +0000 (17:15 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 24 Apr 2008 17:15:17 +0000 (17:15 +0000)
pc.ndisk_links.  Just use nNumberOfLinks instead.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc

index fab93138ce8d5327163919a0e2cd1fc63554a3c9..c9177d2e56e66ec7298564531a7a94b59a24b820 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_disk_file.cc (fhandler_base::fstat_helper): Disable calling
+       pc.ndisk_links.  Just use nNumberOfLinks instead.
+
 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
 
        * fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
index 7895ae8f59c8f3282ba59728ca4513115c6e22df..7d57dcfdec2a8ac9d8110bf13d46d049439290fc 100644 (file)
@@ -478,7 +478,11 @@ fhandler_base::fstat_helper (struct __stat64 *buf,
      This is too slow on remote drives, so we do without it.
      Setting the count to 2 confuses `find (1)' command. So
      let's try it with `1' as link count. */
+#if 0
   buf->st_nlink = pc.ndisk_links (nNumberOfLinks);
+#else
+  buf->st_nlink = nNumberOfLinks;
+#endif
 
   /* Enforce namehash as inode number on untrusted file systems. */
   if (pc.isgood_inode (nFileIndex))
This page took 0.036484 seconds and 5 git commands to generate.