summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldomctl/parse.y
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-02-21 19:29:41 +0000
committerkn <kn@openbsd.org>2020-02-21 19:29:41 +0000
commitb37e2bbcddf9c4efe1d7022515b47d5e80f7c4b1 (patch)
tree1a0f238d1ddeac9ca943849fead9876c99423435 /usr.sbin/ldomctl/parse.y
parentEnforce that TMOUT is an integer literal to prevent command execution from (diff)
downloadwireguard-openbsd-b37e2bbcddf9c4efe1d7022515b47d5e80f7c4b1.tar.xz
wireguard-openbsd-b37e2bbcddf9c4efe1d7022515b47d5e80f7c4b1.zip
Actually pass devalias from parser to config
Missed in previous commit; no breakage, the resulting MD would simply end up without user defined device aliases.
Diffstat (limited to 'usr.sbin/ldomctl/parse.y')
-rw-r--r--usr.sbin/ldomctl/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldomctl/parse.y b/usr.sbin/ldomctl/parse.y
index 9fd85e995b1..e50f40721a1 100644
--- a/usr.sbin/ldomctl/parse.y
+++ b/usr.sbin/ldomctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.16 2020/02/20 20:38:44 kn Exp $ */
+/* $OpenBSD: parse.y,v 1.17 2020/02/21 19:29:41 kn Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis <kettenis@openbsd.org>
@@ -173,6 +173,7 @@ domainopts : VCPU vcpu {
| VDISK STRING vdisk_opts {
struct vdisk *vdisk = xmalloc(sizeof(struct vdisk));
vdisk->path = $2;
+ vdisk->devalias = $3.devalias;
SIMPLEQ_INSERT_TAIL(&domain->vdisk_list, vdisk, entry);
}
| VNET vnet_opts {