Mercurial > hg > xemacs-beta
changeset 910:34362f9d6d61
[xemacs-hg @ 2002-07-09 11:56:04 by michaels]
2002-07-08 Mike Sperber <mike@xemacs.org>
* process.c (Fstart_process_internal): Do error checking before we
fork off the child, so the child can't muck with the state of the
parent.
author | michaels |
---|---|
date | Tue, 09 Jul 2002 11:56:04 +0000 |
parents | a703d313962d |
children | 428608d46017 |
files | src/process.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Tue Jul 09 11:55:36 2002 +0000 +++ b/src/process.c Tue Jul 09 11:56:04 2002 +0000 @@ -694,6 +694,7 @@ Lisp_Object buffer, stderr_buffer, name, program, process, current_dir; int separate_stderr; Lisp_Object tem; + int i; int speccount = specpdl_depth (); struct gcpro gcpro1, gcpro2, gcpro3; @@ -730,6 +731,8 @@ CHECK_STRING (name); CHECK_STRING (program); + for (i = 3; i < nargs; ++i) + CHECK_STRING (args[i]); /* Make sure that the child will be able to chdir to the current buffer's current directory, or its unhandled equivalent. [[ We