mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix the problem of some directory entries going missing when
read by the linux version of 'ls'. Spotted by: rwatson
This commit is contained in:
parent
9513e1a83d
commit
5b3721af37
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76267
@ -749,7 +749,7 @@ linprocfs_readdir(ap)
|
||||
if (pfs->pfs_nd == root_dir) {
|
||||
sx_slock(&allproc_lock);
|
||||
p = LIST_FIRST(&allproc);
|
||||
i = (nd - pfs->pfs_nd) / sizeof(*nd);
|
||||
i = nd - pfs->pfs_nd;
|
||||
|
||||
while (p && i < start) {
|
||||
if (p_can(curproc, p, P_CAN_SEE, NULL) == 0)
|
||||
@ -773,7 +773,6 @@ linprocfs_readdir(ap)
|
||||
sx_sunlock(&allproc_lock);
|
||||
}
|
||||
done:
|
||||
uio->uio_offset += copied * delen;
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user