diff options
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r-- | usr.sbin/sysinstall/config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 5f6d507..3d3f5bd 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -678,6 +678,14 @@ tryagain: vsystem("ldconfig -aout /usr/lib/aout /usr/lib/compat/aout /usr/local/lib/aout /usr/X11R6/lib/aout"); vsystem("/sbin/ifconfig lo0 127.0.0.1"); + + /* + * execcmd may have been passed in as a command name with + * arguments. Therefore, before determining if it is suitable for + * execution, we must split off the filename component from the + * command line arguments. + */ + execcmd = string_concat("/usr/X11R6/bin/", config); execfile = strdup(execcmd); if ((tmp = strchr(execfile, ' '))) |