Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-03-02 01:56:12 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-03-02 01:56:12 +0300
commit24f0349c1e7cb64bb13eadbe3f79e270112e0a45 (patch)
tree11f074ecd4f941fb54b5ea14ceb412893ad2db8e
parentc115f31ff26e621befc3bad4e020b3663a66ab2c (diff)
* fhandler_proc.cc (fhandler_proc::fstat): Always return fixed link
count of 1 for /proc directory instead of incorrect PROC_LINK_COUNT.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_proc.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5cea69b07..9989d55c2 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2006-03-01 Corinna Vinschen <corinna@vinschen.de>
+ * fhandler_proc.cc (fhandler_proc::fstat): Always return fixed link
+ count of 1 for /proc directory instead of incorrect PROC_LINK_COUNT.
+
+2006-03-01 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler.h (enum dirent_states): Remove dirent_saw_cygdrive,
dirent_saw_dev and dirent_saw_proc.
(fhandler_cygdrive::open): Declare.
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 1eebfe601..0f3171116 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -169,7 +169,7 @@ fhandler_proc::fstat (struct __stat64 *buf)
if (!*path)
{
- buf->st_nlink = PROC_LINK_COUNT;
+ buf->st_nlink = 1;
buf->st_mode |= S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH;
return 0;
}