summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-02-24 20:47:53 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-02-24 20:51:28 +0100
commit858a109f4a336be6c258ae615d31651347b9b67b (patch)
tree34300258c90403bed182b774c32b3c28f34ceb8a /src/machine
parent76dcbc4992e895a377aad26f8c4a0dcd71002396 (diff)
machined: fix check if host directory could be opened
CID#1271351
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machine-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
index 334abbdeb5..15c9159405 100644
--- a/src/machine/machine-dbus.c
+++ b/src/machine/machine-dbus.c
@@ -871,7 +871,7 @@ int bus_machine_method_copy(sd_bus *bus, sd_bus_message *message, void *userdata
container_dirname = dirname(t);
hostfd = open(host_dirname, O_CLOEXEC|O_RDONLY|O_NOCTTY|O_DIRECTORY);
- if (r < 0)
+ if (hostfd < 0)
return sd_bus_error_set_errnof(error, errno, "Failed to open host directory %s: %m", host_dirname);
if (pipe2(errno_pipe_fd, O_CLOEXEC|O_NONBLOCK) < 0)