From: Mike Yuan Date: Sat, 7 Mar 2026 04:53:14 +0000 (+0100) Subject: core/execute-serialize: fix error handling X-Git-Tag: v261-rc4~34^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd13dc16c3651678a541289dc51c4a4e5131f405;p=thirdparty%2Fsystemd.git core/execute-serialize: fix error handling --- diff --git a/src/core/execute-serialize.c b/src/core/execute-serialize.c index 953b0d98948..55a52160425 100644 --- a/src/core/execute-serialize.c +++ b/src/core/execute-serialize.c @@ -3278,7 +3278,7 @@ static int exec_context_deserialize(ExecContext *c, FILE *f) { r = extract_first_word(&val, &options, NULL, EXTRACT_UNQUOTE); if (r < 0) - return -r; + return r; if (isempty(options) || streq(options, "rbind")) rbind = true; @@ -3337,7 +3337,7 @@ static int exec_context_deserialize(ExecContext *c, FILE *f) { r = extract_first_word(&val, &options, NULL, EXTRACT_UNQUOTE); if (r < 0) - return -r; + return r; if (isempty(options) || streq(options, "rbind")) rbind = true;