* 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:
parent
c115f31ff2
commit
24f0349c1e
@ -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>
|
2006-03-01 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.h (enum dirent_states): Remove dirent_saw_cygdrive,
|
* fhandler.h (enum dirent_states): Remove dirent_saw_cygdrive,
|
||||||
|
@ -169,7 +169,7 @@ fhandler_proc::fstat (struct __stat64 *buf)
|
|||||||
|
|
||||||
if (!*path)
|
if (!*path)
|
||||||
{
|
{
|
||||||
buf->st_nlink = PROC_LINK_COUNT;
|
buf->st_nlink = 1;
|
||||||
buf->st_mode |= S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH;
|
buf->st_mode |= S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user