4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 20:39:33 +08:00

* fhandler_proc.cc (fhandler_proc::fstat): Always return fixed link

count of 1 for /proc directory instead of incorrect PROC_LINK_COUNT.
This commit is contained in:
Corinna Vinschen 2006-03-01 22:56:12 +00:00
parent c115f31ff2
commit 24f0349c1e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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,

View File

@ -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;
}