]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/execute-serialize: fix error handling
authorMike Yuan <me@yhndnzj.com>
Sat, 7 Mar 2026 04:53:14 +0000 (05:53 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Sat, 13 Jun 2026 15:11:11 +0000 (17:11 +0200)
src/core/execute-serialize.c

index 953b0d989484581bb71974be4df21275f998418e..55a521604255e86e81c7704fadef1bf8ef721034 100644 (file)
@@ -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;