summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/config.c
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2002-04-07 10:40:31 +0000
committermurray <murray@FreeBSD.org>2002-04-07 10:40:31 +0000
commit886fba1185742949549c125476277fc05faadcb3 (patch)
tree902f1bb8f164b51350eee473efd565a1b4f123c3 /usr.sbin/sade/config.c
parent0e00996d76475ba32ccd0bbfe2e95d7196d986f6 (diff)
downloadFreeBSD-src-886fba1185742949549c125476277fc05faadcb3.zip
FreeBSD-src-886fba1185742949549c125476277fc05faadcb3.tar.gz
Add comment to supplement my last commit.
Requested by: obrien
Diffstat (limited to 'usr.sbin/sade/config.c')
-rw-r--r--usr.sbin/sade/config.c8
1 files changed, 8 insertions, 0 deletions
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, ' ')))
OpenPOWER on IntegriCloud