From 886fba1185742949549c125476277fc05faadcb3 Mon Sep 17 00:00:00 2001 From: murray Date: Sun, 7 Apr 2002 10:40:31 +0000 Subject: Add comment to supplement my last commit. Requested by: obrien --- usr.sbin/sade/config.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usr.sbin/sade/config.c') diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 5f6d507..3d3f5bd 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/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, ' '))) -- cgit v1.1