svn commit: r542262 - in head/sysutils/lsof: . files

Larry Rosenman ler at FreeBSD.org
Wed Jul 15 14:56:49 UTC 2020


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) */
  


More information about the svn-ports-all mailing list