summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-18 04:56:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-18 04:56:27 +0000
commit32dc42cf1a248821df7594047bd3fd7822622b32 (patch)
treeb44992897e705edbaec22a2c5e4aee402c5d5177 /process.c
parentec6b316cf26eae7eb36e3f9bce24110319e33e35 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/process.c b/process.c
index d641dc5e56..5dbaac5e70 100644
--- a/process.c
+++ b/process.c
@@ -14,7 +14,6 @@
#include "sig.h"
#include <stdio.h>
#include <errno.h>
-#include <ctype.h>
#include <signal.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@ -29,8 +28,9 @@ struct timeval {
};
#endif
#endif /* NT */
+#include <ctype.h>
-struct timeval time_timeval();
+struct timeval time_timeval _((VALUE));
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
@@ -252,7 +252,6 @@ after_exec()
#endif
extern char *dln_find_exe();
-int env_path_tainted();
static void
security(str)
@@ -364,7 +363,7 @@ rb_proc_exec(str)
security(str);
for (s=str; *s; s++) {
- if (*s != ' ' && !isalpha(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
+ if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
#if defined(MSDOS)
int state;
before_exec();
@@ -489,7 +488,7 @@ proc_spawn(str)
int state;
for (s = str; *s; s++) {
- if (*s != ' ' && !isalpha(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
+ if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
char *shell = dln_find_exe("sh", 0);
before_exec();
state = shell ? spawnl(P_WAIT, shell, "sh", "-c", str, (char *) NULL) : system(str) ;