Omar Polo <o...@omarpolo.com> writes:
> Hello, > > after vmd.c rv 1.142 vmd(8) errors when ran with a non-absolute path; > this makes using -n (configtest) slightly more verbose, as the full > path is needed and not just `vmd -n'. > > here's an attempt at relaxing the requirement for the -n case only. > since we're not going to run any vm it should be fine, but apologize > if I've missed something. Makes sense to me as -n is for validating config. ok dv@. > > > Thanks, > > Omar Polo > > diff /usr/src > commit - 66c6b79616659a94b04092c9f103e3aa29809704 > path + /usr/src > blob - 86a5132fe224856a3679f1a1d6863b87b561c9d0 > file + usr.sbin/vmd/vmd.c > --- usr.sbin/vmd/vmd.c > +++ usr.sbin/vmd/vmd.c > @@ -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]; >