From 9cc989136883392ce2063cca0387337326c243da Mon Sep 17 00:00:00 2001 From: op Date: Sun, 18 Jun 2023 11:45:11 +0000 Subject: [PATCH] relax absolute path requirement for configtest (-n) ok dv@ --- usr.sbin/vmd/vmd.c | 4 ++-- 1 file 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 @@ -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]; -- 2.20.1