* 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

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