diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-10-12 10:58:33 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-10-12 10:58:33 +0000 |
commit | 95b4e39a5946ab35238945f7fddbca0bfb9bc27e (patch) | |
tree | a1cf7bfa789e1d24323b676898db8303c6d191eb /usr.sbin | |
parent | 3bf1091a2e4aa6c2484d3f0ccf674b0f250e299e (diff) |
The error case checks for saved_errno, set it accordingly
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/vmd/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/config.c b/usr.sbin/vmd/config.c index a8198f5583b..c9dd9a22314 100644 --- a/usr.sbin/vmd/config.c +++ b/usr.sbin/vmd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.14 2016/10/05 17:30:13 reyk Exp $ */ +/* $OpenBSD: config.c,v 1.15 2016/10/12 10:58:32 reyk Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -139,7 +139,7 @@ config_getvm(struct privsep *ps, struct vmop_create_params *vmc, errno = 0; if (vm_getbyname(vcp->vcp_name) != NULL) { - errno = EALREADY; + saved_errno = errno = EALREADY; goto fail; } |