]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fuser: fix loop over kinfo_proc array
authorGleb Smirnoff <glebius@FreeBSD.org>
Mon, 9 Jan 2023 16:40:20 +0000 (08:40 -0800)
committerGleb Smirnoff <glebius@FreeBSD.org>
Mon, 23 Jan 2023 15:43:46 +0000 (07:43 -0800)
commit82ed3fb02543af31840fdb2b0c26c77f3ae6cd5e
treebf862759073fc393bd64ad65c43e2f6c70aa92bc
parent74c21730d283f5c2ce30e95a128d03633774955c
fuser: fix loop over kinfo_proc array

The previous code would skip as many entries at the end of the
array as there were zombies in the list.  While here fix type
of cnt.

Submitted by: Ali Abdallah <ali.abdallah suse.com>
PR: 232702

(cherry picked from commit dd2b23006caa2323a12749dfc0d831a26a79bc5b)
usr.bin/fstat/fuser.c