summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2018-10-22 16:45:24 +0000
committerbluhm <bluhm@openbsd.org>2018-10-22 16:45:24 +0000
commit29d9fdbadf1f96f31d7129b05b7a0217680a7268 (patch)
treedd7236c603dc651b863fc60abf2c6ddb3f469fe4 /usr.sbin/vmd
parentunveil support is a bit amusing. /etc/sensorsd.conf with "r", and (diff)
downloadwireguard-openbsd-29d9fdbadf1f96f31d7129b05b7a0217680a7268.tar.xz
wireguard-openbsd-29d9fdbadf1f96f31d7129b05b7a0217680a7268.zip
The recent switch to realpath(3) for the boot string in vmd(8) broke
vmd-fail-boot-name-too-long regress. Use a relative existing path for this test. Print the error message in vmd config parser. OK ccardenas@ reyk@
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r--usr.sbin/vmd/parse.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/vmd/parse.y b/usr.sbin/vmd/parse.y
index 5afa28b8f08..ef2ed38e400 100644
--- a/usr.sbin/vmd/parse.y
+++ b/usr.sbin/vmd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.46 2018/10/18 08:36:11 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.47 2018/10/22 16:45:24 bluhm Exp $ */
/*
* Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org>
@@ -425,7 +425,8 @@ vm_opts : disable {
}
if (realpath($2, path) == NULL) {
- yyerror("kernel path not found");
+ yyerror("kernel path not found: %s",
+ strerror(errno));
free($2);
YYERROR;
}