From: Lennart Poettering Date: Wed, 14 Oct 2020 14:21:04 +0000 (+0200) Subject: execute: fix single character typo X-Git-Tag: v247-rc1~73^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5fa352f1ef5a9cc05df87bc282b13a24f9d5398;p=thirdparty%2Fsystemd.git execute: fix single character typo Corrects: c413bb28df0996be99fd6b3f2335dfe8739d62fb Fixes: #17313 --- diff --git a/src/core/execute.c b/src/core/execute.c index d21de8c41e0..e51e4f26af6 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -6348,7 +6348,7 @@ int exec_runtime_deserialize_one(Manager *m, const char *value, FDSet *fds) { r = safe_atoi(buf, &fdpair[1]); if (r < 0) return log_debug_errno(r, "Unable to parse exec-runtime specification netns-socket-1=%s: %m", buf); - if (!fdset_contains(fds, fdpair[0])) + if (!fdset_contains(fds, fdpair[1])) return log_debug_errno(SYNTHETIC_ERRNO(EBADF), "exec-runtime specification netns-socket-1= refers to unknown fd %d: %m", fdpair[1]); fdpair[1] = fdset_remove(fds, fdpair[1]);