summaryrefslogtreecommitdiff
path: root/usr.sbin/vmctl/main.c
diff options
context:
space:
mode:
authorpd <pd@cvs.openbsd.org>2020-01-03 05:32:01 +0000
committerpd <pd@cvs.openbsd.org>2020-01-03 05:32:01 +0000
commitbb28214186b86f2b49da295e99e6ab0513cfa16c (patch)
tree54e0b95f02f948e37e66cdf49f84b5b5857fd539 /usr.sbin/vmctl/main.c
parentea198c7c7d5f4ff92c49764becef0e686f751fca (diff)
vmctl(8): fix vmctl send exit code
vmctl send always returned exit code 1 Patch by Benjamin Baier ok kn@
Diffstat (limited to 'usr.sbin/vmctl/main.c')
-rw-r--r--usr.sbin/vmctl/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c
index 2836284b882..249eaa3ded1 100644
--- a/usr.sbin/vmctl/main.c
+++ b/usr.sbin/vmctl/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.61 2019/12/28 18:36:01 kn Exp $ */
+/* $OpenBSD: main.c,v 1.62 2020/01/03 05:32:00 pd Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -265,6 +265,7 @@ vmmaction(struct parse_result *res)
case CMD_SEND:
send_vm(res->id, res->name);
done = 1;
+ ret = 0;
break;
case CMD_RECEIVE:
vm_receive(res->id, res->name);