diff options
author | Larry Rosenman <ler@FreeBSD.org> | 2020-07-15 14:56:47 +0000 |
---|---|---|
committer | Larry Rosenman <ler@FreeBSD.org> | 2020-07-15 14:56:47 +0000 |
commit | ce328994de2da8a6280fac56d85c47c8a9413079 (patch) | |
tree | 9492c515bcaaa1eb631b4f15c36de1548622d725 /sysutils/lsof | |
parent | c81987593632ea7afdd63507a55f793eff0e8881 (diff) | |
download | ports-ce328994de2da8a6280fac56d85c47c8a9413079.tar.gz ports-ce328994de2da8a6280fac56d85c47c8a9413079.zip |
sysutils/lsof: update post r363214.
Submitted by: mjg
Notes
Notes:
svn path=/head/; revision=542262
Diffstat (limited to 'sysutils/lsof')
-rw-r--r-- | sysutils/lsof/Makefile | 2 | ||||
-rw-r--r-- | sysutils/lsof/files/patch-dialects_freebsd_dproc.c | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index 928c149b37ff..5af1abb3bf00 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -6,7 +6,7 @@ PORTNAME= lsof DISTVERSION= 4.93.2 -PORTREVISION= 11 +PORTREVISION= 12 PORTEPOCH= 8 CATEGORIES= sysutils diff --git a/sysutils/lsof/files/patch-dialects_freebsd_dproc.c b/sysutils/lsof/files/patch-dialects_freebsd_dproc.c index 26498fd3f803..260899ff9687 100644 --- a/sysutils/lsof/files/patch-dialects_freebsd_dproc.c +++ b/sysutils/lsof/files/patch-dialects_freebsd_dproc.c @@ -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) */ |