sysutils/lsof: update post r363214.

Submitted by:	mjg
This commit is contained in:
Larry Rosenman
2020-07-15 14:56:47 +00:00
parent c819875936
commit ce328994de
2 changed files with 10 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
PORTNAME= lsof
DISTVERSION= 4.93.2
PORTREVISION= 11
PORTREVISION= 12
PORTEPOCH= 8
CATEGORIES= sysutils

View File

@@ -31,7 +31,15 @@
static ofb_t *ofb = NULL;
static int ofbb = 0;
int pgid, pid;
@@ -312,6 +329,22 @@ gather_proc_info()
@@ -305,13 +322,29 @@ gather_proc_info()
if (!fd.fd_files
|| kread((KA_T)fd.fd_files, (char *)&fdt, sizeof(fdt)))
continue;
- if (!fd.fd_refcnt || fd.fd_lastfile > fdt.fdt_nfiles)
+ if (!fd.fd_refcnt)
continue;
#else /* !defined(HAS_FDESCENTTBL) */
if (!fd.fd_refcnt || fd.fd_lastfile > fd.fd_nfiles)
continue;
#endif /* defined(HAS_FDESCENTTBL) */