summaryrefslogtreecommitdiff
path: root/src/machine/operation.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-17 13:51:58 +0100
committerGitHub <noreply@github.com>2017-02-17 13:51:58 +0100
commite4363cd8ae9e0db02aeb4fa45cc785925e78c80e (patch)
treec1072ba3130a025250dc06df8b2ca2e726838a57 /src/machine/operation.c
parentea2aa0343f91f3cd2842129e94dbf05525732e7f (diff)
parentaa10469e17bd145c5d5c8c9b93438a0ee74d1ecf (diff)
Merge pull request #5333 from poettering/machined-copy-files-userns
machined userns fixes
Diffstat (limited to 'src/machine/operation.c')
-rw-r--r--src/machine/operation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/machine/operation.c b/src/machine/operation.c
index c966d0d21c..f7d5310f44 100644
--- a/src/machine/operation.c
+++ b/src/machine/operation.c
@@ -61,8 +61,10 @@ static int operation_done(sd_event_source *s, const siginfo_t *si, void *userdat
} else {
/* The default operation when done is to simply return an error on failure or an empty success
* message on success. */
- if (r < 0)
+ if (r < 0) {
+ sd_bus_error_set_errno(&error, r);
goto fail;
+ }
r = sd_bus_reply_method_return(o->message, NULL);
if (r < 0)