From aef431088bbc287e39e670e4b98c17c4fa6935bd Mon Sep 17 00:00:00 2001 From: Steve Price Date: Wed, 29 Dec 1999 08:47:55 +0000 Subject: Don't coredump under certain conditions where the pid > 32000. PR: 12174 Submitted by: Dirk Meyer --- shells/bash/files/patch-af | 21 +++++++++++++++++++++ shells/bash2/files/patch-af | 21 +++++++++++++++++++++ shells/bash3/files/patch-af | 21 +++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 shells/bash/files/patch-af create mode 100644 shells/bash2/files/patch-af create mode 100644 shells/bash3/files/patch-af (limited to 'shells') diff --git a/shells/bash/files/patch-af b/shells/bash/files/patch-af new file mode 100644 index 000000000000..00c122e05ec0 --- /dev/null +++ b/shells/bash/files/patch-af @@ -0,0 +1,21 @@ +--- execute_cmd.c.orig Tue Dec 28 19:51:28 1999 ++++ execute_cmd.c Tue Dec 28 19:52:15 1999 +@@ -2207,7 +2207,8 @@ + static int + execute_null_command (redirects, pipe_in, pipe_out, async, old_last_command_subst_pid) + REDIRECT *redirects; +- int pipe_in, pipe_out, async, old_last_command_subst_pid; ++ int pipe_in, pipe_out, async; ++ pid_t old_last_command_subst_pid; + { + if (pipe_in != NO_PIPE || pipe_out != NO_PIPE || async) + { +@@ -2955,7 +2956,7 @@ + { + char *pathname, *command, **args; + int nofork; +- int pid; ++ pid_t pid; + + nofork = (cmdflags & CMD_NO_FORK); /* Don't fork, just exec, if no pipes */ + pathname = words->word->word; diff --git a/shells/bash2/files/patch-af b/shells/bash2/files/patch-af new file mode 100644 index 000000000000..00c122e05ec0 --- /dev/null +++ b/shells/bash2/files/patch-af @@ -0,0 +1,21 @@ +--- execute_cmd.c.orig Tue Dec 28 19:51:28 1999 ++++ execute_cmd.c Tue Dec 28 19:52:15 1999 +@@ -2207,7 +2207,8 @@ + static int + execute_null_command (redirects, pipe_in, pipe_out, async, old_last_command_subst_pid) + REDIRECT *redirects; +- int pipe_in, pipe_out, async, old_last_command_subst_pid; ++ int pipe_in, pipe_out, async; ++ pid_t old_last_command_subst_pid; + { + if (pipe_in != NO_PIPE || pipe_out != NO_PIPE || async) + { +@@ -2955,7 +2956,7 @@ + { + char *pathname, *command, **args; + int nofork; +- int pid; ++ pid_t pid; + + nofork = (cmdflags & CMD_NO_FORK); /* Don't fork, just exec, if no pipes */ + pathname = words->word->word; diff --git a/shells/bash3/files/patch-af b/shells/bash3/files/patch-af new file mode 100644 index 000000000000..00c122e05ec0 --- /dev/null +++ b/shells/bash3/files/patch-af @@ -0,0 +1,21 @@ +--- execute_cmd.c.orig Tue Dec 28 19:51:28 1999 ++++ execute_cmd.c Tue Dec 28 19:52:15 1999 +@@ -2207,7 +2207,8 @@ + static int + execute_null_command (redirects, pipe_in, pipe_out, async, old_last_command_subst_pid) + REDIRECT *redirects; +- int pipe_in, pipe_out, async, old_last_command_subst_pid; ++ int pipe_in, pipe_out, async; ++ pid_t old_last_command_subst_pid; + { + if (pipe_in != NO_PIPE || pipe_out != NO_PIPE || async) + { +@@ -2955,7 +2956,7 @@ + { + char *pathname, *command, **args; + int nofork; +- int pid; ++ pid_t pid; + + nofork = (cmdflags & CMD_NO_FORK); /* Don't fork, just exec, if no pipes */ + pathname = words->word->word; -- cgit v1.2.3