]> git.pld-linux.org Git - packages/lsof.git/commitdiff
- dropped unused patch; add upstream patch that is fixing 'unwanted pipe file output' auto/th/lsof-4.88-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 15 May 2015 06:34:27 +0000 (08:34 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 15 May 2015 06:34:27 +0000 (08:34 +0200)
lsof-4.88-pipe-files.patch [new file with mode: 0644]
lsof-linux-ipv6mapped.patch [deleted file]
lsof.spec

diff --git a/lsof-4.88-pipe-files.patch b/lsof-4.88-pipe-files.patch
new file mode 100644 (file)
index 0000000..638e0a7
--- /dev/null
@@ -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-linux-ipv6mapped.patch b/lsof-linux-ipv6mapped.patch
deleted file mode 100644 (file)
index 88efeff..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -urN lsof_4.45.orig/dialects/linux/proc/dsock.c lsof_4.45/dialects/linux/proc/dsock.c
---- lsof_4.45.orig/dialects/linux/proc/dsock.c Fri Aug  6 14:41:52 1999
-+++ lsof_4.45/dialects/linux/proc/dsock.c      Fri Aug  6 14:45:07 1999
-@@ -1571,13 +1571,17 @@
-           Lf->inp_ty = 2;
-           (void) sprintf(dev_ch, "%ld", (long)s->st_ino);
-           enter_dev_ch(dev_ch);
--          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->faddr) || tp6->fport)
-+          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->faddr) || tp6->fport) {
-               fa = (unsigned char *)&tp6->faddr;
--          else
-+              if (IN6_IS_ADDR_V4MAPPED(&tp6->faddr))
-+                  Lf->type[3] = '4';
-+          } else
-               fa = (unsigned char *)NULL;
--          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->laddr) || tp6->lport)
-+          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->laddr) || tp6->lport) {
-               la = (unsigned char *)&tp6->laddr;
--          else
-+              if (IN6_IS_ADDR_V4MAPPED(&tp6->laddr))
-+                  Lf->type[3] = '4';
-+          } else
-               la = (unsigned char *)NULL;
-           ent_inaddr(la, tp6->lport, fa, tp6->fport, AF_INET6);
-           Lf->lts.type = tp6->proto;
index f25895efade1ab0eff142239b0948b18671b9d3b..4f670fee0b3b485327b6fabb10d17ae8a1940085 100644 (file)
--- a/lsof.spec
+++ b/lsof.spec
@@ -11,7 +11,7 @@ License:      Free
 Group:         Applications/System
 Source0:       ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/%{name}_%{version}.tar.bz2
 # Source0-md5: 1b29c10db4aa88afcaeeaabeef6790db
-Patch0:                %{name}-linux-ipv6mapped.patch
+Patch0:                lsof-4.88-pipe-files.patch
 URL:           http://people.freebsd.org/~abe/
 BuildRequires: libselinux-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -50,6 +50,8 @@ Lsof - це скорочення від LiSt Open Files. Саме це прог
 %setup -q -c
 cd %{name}_%{version}
 tar xf %{name}_%{version}_src.tar
+cd %{name}_%{version}_src
+%patch0 -p1
 
 %build
 cd %{name}_%{version}/%{name}_%{version}_src
This page took 0.114583 seconds and 4 git commands to generate.