diff options
author | bluhm <bluhm@openbsd.org> | 2018-10-22 16:45:24 +0000 |
---|---|---|
committer | bluhm <bluhm@openbsd.org> | 2018-10-22 16:45:24 +0000 |
commit | 29d9fdbadf1f96f31d7129b05b7a0217680a7268 (patch) | |
tree | dd7236c603dc651b863fc60abf2c6ddb3f469fe4 /usr.sbin/vmd | |
parent | unveil support is a bit amusing. /etc/sensorsd.conf with "r", and (diff) | |
download | wireguard-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.y | 5 |
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; } |