varlink: fix varlink_get_peer_pidref() fallback

let's properly handle old kernels that have no pidfd, and use regular
pids in that case, as intended originally.
This commit is contained in:
Lennart Poettering
2024-04-25 12:44:00 +02:00
parent 47bb0b8c29
commit 78ef66354c
+1 -1
View File
@@ -2871,7 +2871,7 @@ int varlink_get_peer_pidref(Varlink *v, PidRef *ret) {
* authentication. */
r = varlink_acquire_pidfd(v);
if (r < 0)
if (r < 0 && !ERRNO_IS_NEG_NOT_SUPPORTED(r))
return r;
if (v->peer_pidfd < 0) {