From 24f0349c1e7cb64bb13eadbe3f79e270112e0a45 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 1 Mar 2006 22:56:12 +0000 Subject: [PATCH] * fhandler_proc.cc (fhandler_proc::fstat): Always return fixed link count of 1 for /proc directory instead of incorrect PROC_LINK_COUNT. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_proc.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5cea69b07..9989d55c2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-03-01 Corinna Vinschen + + * 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 * fhandler.h (enum dirent_states): Remove dirent_saw_cygdrive, 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; }