Date: Wed, 15 Jul 2020 14:56:48 +0000 (UTC) From: Larry Rosenman <ler@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r542262 - in head/sysutils/lsof: . files Message-ID: <202007151456.06FEumG3073650@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ler Date: Wed Jul 15 14:56:47 2020 New Revision: 542262 URL: https://svnweb.freebsd.org/changeset/ports/542262 Log: sysutils/lsof: update post r363214. Submitted by: mjg Modified: head/sysutils/lsof/Makefile head/sysutils/lsof/files/patch-dialects_freebsd_dproc.c Modified: head/sysutils/lsof/Makefile ============================================================================== --- head/sysutils/lsof/Makefile Wed Jul 15 13:56:08 2020 (r542261) +++ head/sysutils/lsof/Makefile Wed Jul 15 14:56:47 2020 (r542262) @@ -6,7 +6,7 @@ PORTNAME= lsof DISTVERSION= 4.93.2 -PORTREVISION= 11 +PORTREVISION= 12 PORTEPOCH= 8 CATEGORIES= sysutils Modified: head/sysutils/lsof/files/patch-dialects_freebsd_dproc.c ============================================================================== --- head/sysutils/lsof/files/patch-dialects_freebsd_dproc.c Wed Jul 15 13:56:08 2020 (r542261) +++ head/sysutils/lsof/files/patch-dialects_freebsd_dproc.c Wed Jul 15 14:56:47 2020 (r542262) @@ -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) */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007151456.06FEumG3073650>