diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-24 21:15:17 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-24 21:15:17 +0400 |
commit | 4214d0c04c5a349e57df5cd9ff14533da94f14c3 (patch) | |
tree | d8854a0a2d2b0a0481612e9f6a3ad43b3f206833 /winsup | |
parent | 4e4eba83f88016a48abd9b355dcf0363136c93f1 (diff) |
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Disable calling
pc.ndisk_links. Just use nNumberOfLinks instead.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fab93138c..c9177d2e5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 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 input range check. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 7895ae8f5..7d57dcfde 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -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)) |