summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@cvs.openbsd.org>2023-06-18 11:45:12 +0000
committerOmar Polo <op@cvs.openbsd.org>2023-06-18 11:45:12 +0000
commitfe6e1079ff355b8e664cced4672c34b58cb24e61 (patch)
treebe04302a40f3919bf2cde1ff9f5a4cce87a71bc3
parent98790bd0b9f995ed6b39561a06bcca8895fcd823 (diff)
relax absolute path requirement for configtest (-n)
ok dv@
-rw-r--r--usr.sbin/vmd/vmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c
index 86a5132fe22..3ba9c6792fd 100644
--- a/usr.sbin/vmd/vmd.c
+++ b/usr.sbin/vmd/vmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.c,v 1.149 2023/05/13 23:15:28 dv Exp $ */
+/* $OpenBSD: vmd.c,v 1.150 2023/06/18 11:45:11 op Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -874,7 +874,7 @@ main(int argc, char **argv)
log_setverbose(env->vmd_verbose);
/* Re-exec from the vmm child process requires an absolute path. */
- if (proc_id == PROC_PARENT && *argv[0] != '/')
+ if (proc_id == PROC_PARENT && *argv[0] != '/' && !env->vmd_noaction)
fatalx("re-exec requires execution with an absolute path");
env->argv0 = argv[0];