From b50ab1ec3048fdd417c2f35fa33920c28813a351 Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Mon, 5 Jan 2015 20:09:24 +0100 Subject: [PATCH] added upstream patch fixing unwanted pipe file output --- lsof-4.88-pipe-files.patch | 12 ++++++++++++ lsof.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 lsof-4.88-pipe-files.patch diff --git a/lsof-4.88-pipe-files.patch b/lsof-4.88-pipe-files.patch new file mode 100644 index 0000000..638e0a7 --- /dev/null +++ b/lsof-4.88-pipe-files.patch @@ -0,0 +1,12 @@ +diff -upr lsof_4.88-rh.orig/dialects/linux/dnode.c lsof_4.88-rh/dialects/linux/dnode.c +--- lsof_4.88-rh.orig/dialects/linux/dnode.c 2014-10-14 00:26:03.000000000 +0200 ++++ lsof_4.88-rh/dialects/linux/dnode.c 2015-01-05 19:57:05.562294509 +0100 +@@ -580,7 +580,7 @@ process_proc_node(p, pbr, s, ss, l, ls) + Lf->inp_ty = 1; + + #if defined(HASEPTOPTS) +- if (Lf->ntype == N_FIFO) { ++ if ((Lf->ntype == N_FIFO) && FpipeE) { + (void) enter_pinfo(); + Lf->sf |= SELPINFO; + } diff --git a/lsof.spec b/lsof.spec index 887152a..236faf3 100644 --- a/lsof.spec +++ b/lsof.spec @@ -1,7 +1,7 @@ Summary: A utility which lists open files on a Linux/UNIX system Name: lsof Version: 4.88 -Release: 1%{?dist} +Release: 2%{?dist} # Sendmail .. lib/snpf.c # LGPLv2+ .. lib/regex.c, regex.h License: zlib and Sendmail and LGPLv2+ @@ -18,6 +18,9 @@ URL: http://people.freebsd.org/~abe/ Source0: %{lsofrh}.tar.xz Source1: upstream2downstream.sh +# upstream patch: eliminates unwanted pipe file output +Patch0: lsof-4.88-pipe-files.patch + BuildRequires: libselinux-devel %description @@ -27,6 +30,7 @@ UNIX system. %prep %setup -q -n %{lsofrh} +%patch0 -p1 -b .pipe-files %build ./Configure -n linux @@ -44,6 +48,9 @@ install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8 %{_mandir}/man*/* %changelog +* Mon Jan 5 2015 Peter Schiffer - 4.88-2 +- added upstream patch fixing unwanted pipe file output + * Wed Oct 15 2014 Peter Schiffer - 4.88-1 - updated to 4.88