summaryrefslogtreecommitdiff
path: root/src/machine/machine-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-09-23 10:21:27 +0200
committerLennart Poettering <lennart@poettering.net>2020-09-23 13:24:25 +0200
commitd5bc4e68987a527448ee5a00cc433fc5abec4028 (patch)
treeb2bab0758291c718651fc66bde07fe4f54e46b41 /src/machine/machine-dbus.c
parent6b6737119af14e47b13c15d9e3a76cb4d0053ec5 (diff)
downloadsystemd-d5bc4e68987a527448ee5a00cc433fc5abec4028.tar.gz
machine: fix error code propagation in two cases
Diffstat (limited to 'src/machine/machine-dbus.c')
-rw-r--r--src/machine/machine-dbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
index a98e883afa..8dd4a3294a 100644
--- a/src/machine/machine-dbus.c
+++ b/src/machine/machine-dbus.c
@@ -910,7 +910,7 @@ int bus_machine_method_bind_mount(sd_bus_message *message, void *userdata, sd_bu
else
r = touch(mount_tmp);
if (r < 0) {
- sd_bus_error_set_errnof(error, errno, "Failed to create temporary mount point %s: %m", mount_tmp);
+ sd_bus_error_set_errnof(error, r, "Failed to create temporary mount point %s: %m", mount_tmp);
goto finish;
}
@@ -941,7 +941,7 @@ int bus_machine_method_bind_mount(sd_bus_message *message, void *userdata, sd_bu
safe_close(r);
}
if (r < 0) {
- sd_bus_error_set_errnof(error, errno, "Cannot create propagation file or directory %s: %m", mount_outside);
+ sd_bus_error_set_errnof(error, r, "Cannot create propagation file or directory %s: %m", mount_outside);
goto finish;
}