added upstream patch fixing unwanted pipe file output

This commit is contained in:
Peter Schiffer 2015-01-05 20:09:24 +01:00
parent c22d601728
commit b50ab1ec30
2 changed files with 20 additions and 1 deletions

View File

@ -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;
}

View File

@ -1,7 +1,7 @@
Summary: A utility which lists open files on a Linux/UNIX system Summary: A utility which lists open files on a Linux/UNIX system
Name: lsof Name: lsof
Version: 4.88 Version: 4.88
Release: 1%{?dist} Release: 2%{?dist}
# Sendmail .. lib/snpf.c # Sendmail .. lib/snpf.c
# LGPLv2+ .. lib/regex.c, regex.h # LGPLv2+ .. lib/regex.c, regex.h
License: zlib and Sendmail and LGPLv2+ License: zlib and Sendmail and LGPLv2+
@ -18,6 +18,9 @@ URL: http://people.freebsd.org/~abe/
Source0: %{lsofrh}.tar.xz Source0: %{lsofrh}.tar.xz
Source1: upstream2downstream.sh Source1: upstream2downstream.sh
# upstream patch: eliminates unwanted pipe file output
Patch0: lsof-4.88-pipe-files.patch
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
%description %description
@ -27,6 +30,7 @@ UNIX system.
%prep %prep
%setup -q -n %{lsofrh} %setup -q -n %{lsofrh}
%patch0 -p1 -b .pipe-files
%build %build
./Configure -n linux ./Configure -n linux
@ -44,6 +48,9 @@ install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Mon Jan 5 2015 Peter Schiffer <pschiffe@redhat.com> - 4.88-2
- added upstream patch fixing unwanted pipe file output
* Wed Oct 15 2014 Peter Schiffer <pschiffe@redhat.com> - 4.88-1 * Wed Oct 15 2014 Peter Schiffer <pschiffe@redhat.com> - 4.88-1
- updated to 4.88 - updated to 4.88