diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-19 07:03:06 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-19 07:03:06 +0000 |
| commit | 441d7fe82116177a84aba4798aad03df980c0694 (patch) | |
| tree | 35ca43544604467644f99ad0376fef8a4c4dc1e0 /process.c | |
| parent | c70fa7e9682e25a9d52ebb8ac67c710b93d2300c (diff) | |
| download | ruby-441d7fe82116177a84aba4798aad03df980c0694.tar.gz ruby-441d7fe82116177a84aba4798aad03df980c0694.tar.xz ruby-441d7fe82116177a84aba4798aad03df980c0694.zip | |
* eval.c (secure_visibility): visibility check for untainted modules.
* signal.c (sigpipe): sighandler which does nothing.
* signal.c (trap): set sigpipe function for SIGPIPE.
* signal.c (Init_signal): default SIGPIPE handler should be
sigpipe function.
* array.c (rb_ary_subseq): wrong boundary check.
* parse.y (cond0): integer literal in condition should not be
compared to lineno ($.).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
| -rw-r--r-- | process.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -299,12 +299,12 @@ struct waitall_data { int pid; int status; VALUE ary; -} +}; static int waitall_each(key, value, data) int key, value; - struct wait_data *data; + struct waitall_data *data; { VALUE pid_status_member; @@ -563,6 +563,10 @@ rb_proc_exec(str) char **argv, **a; security(str); + + while (*str && ISSPACE(*str)) + str++; + for (s=str; *s; s++) { if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) { #if defined(MSDOS) |
