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 /winsup/cygwin/fhandler_proc.cc
parentc115f31ff26e621befc3bad4e020b3663a66ab2c (diff)
* fhandler_proc.cc (fhandler_proc::fstat): Always return fixed link
count of 1 for /proc directory instead of incorrect PROC_LINK_COUNT.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc2
1 files changed, 1 insertions, 1 deletions
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;
}