Update apply-disable patch
This commit is contained in:
parent
cacd81b5db
commit
9074caea66
@ -12,7 +12,7 @@ diff -urp libcap-ng-0.8.3.orig/src/cap-ng.c libcap-ng-0.8.3/src/cap-ng.c
|
|||||||
+ int res;
|
+ int res;
|
||||||
+
|
+
|
||||||
+ /* get the name of the current executable */
|
+ /* get the name of the current executable */
|
||||||
+ if ((res = readlink("/proc/self/exe", tmp, PATH_MAX)) < -1)
|
+ if ((res = readlink("/proc/self/exe", tmp, PATH_MAX)) < 0)
|
||||||
+ strcpy(exename, "\"?\"");
|
+ strcpy(exename, "\"?\"");
|
||||||
+ else {
|
+ else {
|
||||||
+ tmp[res] = '\0';
|
+ tmp[res] = '\0';
|
||||||
@ -27,7 +27,7 @@ diff -urp libcap-ng-0.8.3.orig/src/cap-ng.c libcap-ng-0.8.3/src/cap-ng.c
|
|||||||
+ static const char *text[3] = {
|
+ static const char *text[3] = {
|
||||||
+ "dropping bounding set",
|
+ "dropping bounding set",
|
||||||
+ "getting new bounding set",
|
+ "getting new bounding set",
|
||||||
+ "due to not having CAP_SETPCAP"
|
+ "dropping bounding set due to not having CAP_SETPCAP"
|
||||||
+ };
|
+ };
|
||||||
+ unsigned idx = msg - 2;
|
+ unsigned idx = msg - 2;
|
||||||
+ char exe[2048];
|
+ char exe[2048];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Alternate posix capabilities library
|
Summary: Alternate posix capabilities library
|
||||||
Name: libcap-ng
|
Name: libcap-ng
|
||||||
Version: 0.8.2
|
Version: 0.8.2
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://people.redhat.com/sgrubb/libcap-ng/
|
URL: https://people.redhat.com/sgrubb/libcap-ng/
|
||||||
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
||||||
@ -95,6 +95,9 @@ make check
|
|||||||
%attr(0644,root,root) %{_mandir}/man8/*
|
%attr(0644,root,root) %{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 22 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-8
|
||||||
|
- Update apply-disable patch
|
||||||
|
|
||||||
* Wed Sep 22 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-7
|
* Wed Sep 22 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-7
|
||||||
- Drop .la and .a libraries
|
- Drop .la and .a libraries
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user