Add a patch to work around https://github.com/bus1/dbus-broker/issues/427. #1
13
dbus-broker-v37-SO_PEERPIDFD-ESRCH.patch
Normal file
13
dbus-broker-v37-SO_PEERPIDFD-ESRCH.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git i/src/util/sockopt.c w/src/util/sockopt.c
|
||||
index a374e59..4270314 100644
|
||||
--- i/src/util/sockopt.c
|
||||
+++ w/src/util/sockopt.c
|
||||
@@ -238,7 +238,7 @@ int sockopt_get_peerpidfd(int fd, int *pidfdp) {
|
||||
return SOCKOPT_E_UNSUPPORTED;
|
||||
if (errno == ENODATA)
|
||||
return SOCKOPT_E_UNAVAILABLE;
|
||||
- if (errno == EINVAL)
|
||||
+ if (errno == EINVAL || errno == ESRCH)
|
||||
return SOCKOPT_E_REAPED;
|
||||
|
||||
return error_origin(-errno);
|
||||
@@ -28,6 +28,8 @@ Source: https://github.com/bus1/dbus-broker/releases/download/v%version/
|
||||
Source2: https://github.com/bus1/dbus-broker/releases/download/v%version/dbus-broker-%version.tar.xz.asc
|
||||
Source10: allow-restart.conf
|
||||
Source11: block-restart.conf
|
||||
# PATCH-FIX-UPSTREAM see https://github.com/bus1/dbus-broker/issues/427
|
||||
Patch1: %{name}-v37-SO_PEERPIDFD-ESRCH.patch
|
||||
BuildRequires: linux-glibc-devel >= 4.17
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkg-config
|
||||
|
||||
Reference in New Issue
Block a user