Remove useless code in pscap causing EBADFD
This commit is contained in:
parent
557323c058
commit
42e500b828
12
libcap-ng-0.7.4-badfd.patch
Normal file
12
libcap-ng-0.7.4-badfd.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -urp libcap-ng-0.7.3/utils/pscap.c libcap-ng-0.7.4/utils/pscap.c
|
||||
--- libcap-ng-0.7.3/utils/pscap.c 2012-11-09 14:45:43.000000000 -0500
|
||||
+++ libcap-ng-0.7.4/utils/pscap.c 2012-11-30 10:06:42.000000000 -0500
|
||||
@@ -142,8 +142,6 @@ int main(int argc, char *argv[])
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
- len = read(fd, buf, sizeof buf - 1);
|
||||
- close(fd);
|
||||
if (header == 0) {
|
||||
printf("%-5s %-5s %-10s %-16s %s\n",
|
||||
"ppid", "pid", "name", "command",
|
@ -3,11 +3,12 @@
|
||||
Summary: An alternate posix capabilities library
|
||||
Name: libcap-ng
|
||||
Version: 0.7.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: LGPLv2+
|
||||
Group: System Environment/Libraries
|
||||
URL: http://people.redhat.com/sgrubb/libcap-ng
|
||||
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
||||
Patch1: libcap-ng-0.7.4-badfd.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: kernel-headers >= 2.6.11
|
||||
|
||||
@ -50,6 +51,7 @@ lets you set the file system based capabilities.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%configure --libdir=/%{_lib}
|
||||
@ -111,6 +113,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%attr(0644,root,root) %{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
* Wed Dec 19 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-2
|
||||
- Remove useless code in pscap causing EBADFD
|
||||
|
||||
* Fri Nov 09 2012 Steve Grubb <sgrubb@redhat.com> 0.7.3-1
|
||||
- New upstream release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user