Corrected requires patch (#563301)
This commit is contained in:
parent
2ef5a76ca8
commit
5f19b42956
@ -1,6 +1,6 @@
|
|||||||
diff -up bash-4.1-rc1/builtins.h.requires bash-4.1-rc1/builtins.h
|
diff -up bash-4.1/builtins.h.requires bash-4.1/builtins.h
|
||||||
--- bash-4.1-rc1/builtins.h.requires 2009-01-04 20:32:23.000000000 +0100
|
--- bash-4.1/builtins.h.requires 2009-01-04 20:32:23.000000000 +0100
|
||||||
+++ bash-4.1-rc1/builtins.h 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/builtins.h 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -41,6 +41,8 @@
|
@@ -41,6 +41,8 @@
|
||||||
#define SPECIAL_BUILTIN 0x08 /* This is a Posix `special' builtin. */
|
#define SPECIAL_BUILTIN 0x08 /* This is a Posix `special' builtin. */
|
||||||
#define ASSIGNMENT_BUILTIN 0x10 /* This builtin takes assignment statements. */
|
#define ASSIGNMENT_BUILTIN 0x10 /* This builtin takes assignment statements. */
|
||||||
@ -10,9 +10,9 @@ diff -up bash-4.1-rc1/builtins.h.requires bash-4.1-rc1/builtins.h
|
|||||||
|
|
||||||
#define BASE_INDENT 4
|
#define BASE_INDENT 4
|
||||||
|
|
||||||
diff -up bash-4.1-rc1/builtins/mkbuiltins.c.requires bash-4.1-rc1/builtins/mkbuiltins.c
|
diff -up bash-4.1/builtins/mkbuiltins.c.requires bash-4.1/builtins/mkbuiltins.c
|
||||||
--- bash-4.1-rc1/builtins/mkbuiltins.c.requires 2009-01-04 20:32:23.000000000 +0100
|
--- bash-4.1/builtins/mkbuiltins.c.requires 2009-01-04 20:32:23.000000000 +0100
|
||||||
+++ bash-4.1-rc1/builtins/mkbuiltins.c 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/builtins/mkbuiltins.c 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -69,9 +69,15 @@ extern char *strcpy ();
|
@@ -69,9 +69,15 @@ extern char *strcpy ();
|
||||||
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
|
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
|
||||||
|
|
||||||
@ -86,9 +86,9 @@ diff -up bash-4.1-rc1/builtins/mkbuiltins.c.requires bash-4.1-rc1/builtins/mkbui
|
|||||||
#if !defined (HAVE_RENAME)
|
#if !defined (HAVE_RENAME)
|
||||||
static int
|
static int
|
||||||
rename (from, to)
|
rename (from, to)
|
||||||
diff -up bash-4.1-rc1/doc/bash.1.requires bash-4.1-rc1/doc/bash.1
|
diff -up bash-4.1/doc/bash.1.requires bash-4.1/doc/bash.1
|
||||||
--- bash-4.1-rc1/doc/bash.1.requires 2009-12-26 22:55:02.000000000 +0100
|
--- bash-4.1/doc/bash.1.requires 2010-03-30 10:50:38.000000000 +0200
|
||||||
+++ bash-4.1-rc1/doc/bash.1 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/doc/bash.1 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -231,6 +231,13 @@ The shell becomes restricted (see
|
@@ -231,6 +231,13 @@ The shell becomes restricted (see
|
||||||
.B "RESTRICTED SHELL"
|
.B "RESTRICTED SHELL"
|
||||||
below).
|
below).
|
||||||
@ -103,10 +103,10 @@ diff -up bash-4.1-rc1/doc/bash.1.requires bash-4.1-rc1/doc/bash.1
|
|||||||
.B \-\-verbose
|
.B \-\-verbose
|
||||||
Equivalent to \fB\-v\fP.
|
Equivalent to \fB\-v\fP.
|
||||||
.TP
|
.TP
|
||||||
diff -up bash-4.1-rc1/doc/bashref.texi.requires bash-4.1-rc1/doc/bashref.texi
|
diff -up bash-4.1/doc/bashref.texi.requires bash-4.1/doc/bashref.texi
|
||||||
--- bash-4.1-rc1/doc/bashref.texi.requires 2009-12-26 22:55:02.000000000 +0100
|
--- bash-4.1/doc/bashref.texi.requires 2010-03-30 10:50:38.000000000 +0200
|
||||||
+++ bash-4.1-rc1/doc/bashref.texi 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/doc/bashref.texi 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -5337,6 +5337,13 @@ standard. @xref{Bash POSIX Mode}, for a
|
@@ -5343,6 +5343,13 @@ standard. @xref{Bash POSIX Mode}, for a
|
||||||
@item --restricted
|
@item --restricted
|
||||||
Make the shell a restricted shell (@pxref{The Restricted Shell}).
|
Make the shell a restricted shell (@pxref{The Restricted Shell}).
|
||||||
|
|
||||||
@ -120,9 +120,9 @@ diff -up bash-4.1-rc1/doc/bashref.texi.requires bash-4.1-rc1/doc/bashref.texi
|
|||||||
@item --verbose
|
@item --verbose
|
||||||
Equivalent to @option{-v}. Print shell input lines as they're read.
|
Equivalent to @option{-v}. Print shell input lines as they're read.
|
||||||
|
|
||||||
diff -up bash-4.1-rc1/eval.c.requires bash-4.1-rc1/eval.c
|
diff -up bash-4.1/eval.c.requires bash-4.1/eval.c
|
||||||
--- bash-4.1-rc1/eval.c.requires 2009-01-04 20:32:26.000000000 +0100
|
--- bash-4.1/eval.c.requires 2009-01-04 20:32:26.000000000 +0100
|
||||||
+++ bash-4.1-rc1/eval.c 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/eval.c 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -53,6 +53,7 @@ extern int last_command_exit_value, stdi
|
@@ -53,6 +53,7 @@ extern int last_command_exit_value, stdi
|
||||||
extern int need_here_doc;
|
extern int need_here_doc;
|
||||||
extern int current_command_number, current_command_line_count, line_number;
|
extern int current_command_number, current_command_line_count, line_number;
|
||||||
@ -140,10 +140,10 @@ diff -up bash-4.1-rc1/eval.c.requires bash-4.1-rc1/eval.c
|
|||||||
{
|
{
|
||||||
last_command_exit_value = EXECUTION_SUCCESS;
|
last_command_exit_value = EXECUTION_SUCCESS;
|
||||||
dispose_command (global_command);
|
dispose_command (global_command);
|
||||||
diff -up bash-4.1-rc1/execute_cmd.c.requires bash-4.1-rc1/execute_cmd.c
|
diff -up bash-4.1/execute_cmd.c.requires bash-4.1/execute_cmd.c
|
||||||
--- bash-4.1-rc1/execute_cmd.c.requires 2009-12-26 22:55:02.000000000 +0100
|
--- bash-4.1/execute_cmd.c.requires 2010-03-30 10:50:37.000000000 +0200
|
||||||
+++ bash-4.1-rc1/execute_cmd.c 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/execute_cmd.c 2010-03-30 10:52:03.000000000 +0200
|
||||||
@@ -501,6 +501,8 @@ async_redirect_stdin ()
|
@@ -503,6 +503,8 @@ async_redirect_stdin ()
|
||||||
|
|
||||||
#define DESCRIBE_PID(pid) do { if (interactive) describe_pid (pid); } while (0)
|
#define DESCRIBE_PID(pid) do { if (interactive) describe_pid (pid); } while (0)
|
||||||
|
|
||||||
@ -152,22 +152,22 @@ diff -up bash-4.1-rc1/execute_cmd.c.requires bash-4.1-rc1/execute_cmd.c
|
|||||||
/* Execute the command passed in COMMAND, perhaps doing it asynchrounously.
|
/* Execute the command passed in COMMAND, perhaps doing it asynchrounously.
|
||||||
COMMAND is exactly what read_command () places into GLOBAL_COMMAND.
|
COMMAND is exactly what read_command () places into GLOBAL_COMMAND.
|
||||||
ASYNCHROUNOUS, if non-zero, says to do this command in the background.
|
ASYNCHROUNOUS, if non-zero, says to do this command in the background.
|
||||||
@@ -532,8 +534,13 @@ execute_command_internal (command, async
|
@@ -534,7 +536,13 @@ execute_command_internal (command, async
|
||||||
#else
|
#else
|
||||||
if (breaking || continuing)
|
if (breaking || continuing)
|
||||||
return (last_command_exit_value);
|
return (last_command_exit_value);
|
||||||
- if (command == 0 || read_but_dont_execute)
|
- if (command == 0 || read_but_dont_execute)
|
||||||
+ if (command == 0 || (read_but_dont_execute && !rpm_requires))
|
+ if (command == 0 || (read_but_dont_execute && !rpm_requires))
|
||||||
return (EXECUTION_SUCCESS);
|
+ return (EXECUTION_SUCCESS);
|
||||||
+ if (rpm_requires && command->type == cm_function_def)
|
+ if (rpm_requires && command->type == cm_function_def)
|
||||||
+ return last_command_exit_value =
|
+ return last_command_exit_value =
|
||||||
+ execute_intern_function (command->value.Function_def->name,
|
+ execute_intern_function (command->value.Function_def->name,
|
||||||
+ command->value.Function_def->command);
|
+ command->value.Function_def->command);
|
||||||
+
|
+ if (read_but_dont_execute)
|
||||||
|
return (EXECUTION_SUCCESS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QUIT;
|
@@ -5066,7 +5074,7 @@ execute_intern_function (name, function)
|
||||||
@@ -5061,7 +5068,7 @@ execute_intern_function (name, function)
|
|
||||||
|
|
||||||
if (check_identifier (name, posixly_correct) == 0)
|
if (check_identifier (name, posixly_correct) == 0)
|
||||||
{
|
{
|
||||||
@ -176,9 +176,9 @@ diff -up bash-4.1-rc1/execute_cmd.c.requires bash-4.1-rc1/execute_cmd.c
|
|||||||
{
|
{
|
||||||
last_command_exit_value = EX_BADUSAGE;
|
last_command_exit_value = EX_BADUSAGE;
|
||||||
jump_to_top_level (ERREXIT);
|
jump_to_top_level (ERREXIT);
|
||||||
diff -up bash-4.1-rc1/execute_cmd.h.requires bash-4.1-rc1/execute_cmd.h
|
diff -up bash-4.1/execute_cmd.h.requires bash-4.1/execute_cmd.h
|
||||||
--- bash-4.1-rc1/execute_cmd.h.requires 2009-01-16 22:20:15.000000000 +0100
|
--- bash-4.1/execute_cmd.h.requires 2009-01-16 22:20:15.000000000 +0100
|
||||||
+++ bash-4.1-rc1/execute_cmd.h 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/execute_cmd.h 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -22,6 +22,8 @@
|
@@ -22,6 +22,8 @@
|
||||||
#define _EXECUTE_CMD_H_
|
#define _EXECUTE_CMD_H_
|
||||||
|
|
||||||
@ -188,9 +188,9 @@ diff -up bash-4.1-rc1/execute_cmd.h.requires bash-4.1-rc1/execute_cmd.h
|
|||||||
|
|
||||||
extern struct fd_bitmap *new_fd_bitmap __P((int));
|
extern struct fd_bitmap *new_fd_bitmap __P((int));
|
||||||
extern void dispose_fd_bitmap __P((struct fd_bitmap *));
|
extern void dispose_fd_bitmap __P((struct fd_bitmap *));
|
||||||
diff -up bash-4.1-rc1/make_cmd.c.requires bash-4.1-rc1/make_cmd.c
|
diff -up bash-4.1/make_cmd.c.requires bash-4.1/make_cmd.c
|
||||||
--- bash-4.1-rc1/make_cmd.c.requires 2009-09-11 23:26:12.000000000 +0200
|
--- bash-4.1/make_cmd.c.requires 2009-09-11 23:26:12.000000000 +0200
|
||||||
+++ bash-4.1-rc1/make_cmd.c 2009-12-26 22:57:46.000000000 +0100
|
+++ bash-4.1/make_cmd.c 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -42,11 +42,15 @@
|
@@ -42,11 +42,15 @@
|
||||||
#include "flags.h"
|
#include "flags.h"
|
||||||
#include "make_cmd.h"
|
#include "make_cmd.h"
|
||||||
@ -274,9 +274,9 @@ diff -up bash-4.1-rc1/make_cmd.c.requires bash-4.1-rc1/make_cmd.c
|
|||||||
parser_state &= ~PST_REDIRLIST;
|
parser_state &= ~PST_REDIRLIST;
|
||||||
return (command);
|
return (command);
|
||||||
}
|
}
|
||||||
diff -up bash-4.1-rc1/shell.c.requires bash-4.1-rc1/shell.c
|
diff -up bash-4.1/shell.c.requires bash-4.1/shell.c
|
||||||
--- bash-4.1-rc1/shell.c.requires 2009-12-26 22:55:02.000000000 +0100
|
--- bash-4.1/shell.c.requires 2010-03-30 10:50:38.000000000 +0200
|
||||||
+++ bash-4.1-rc1/shell.c 2009-12-26 22:55:02.000000000 +0100
|
+++ bash-4.1/shell.c 2010-03-30 10:50:38.000000000 +0200
|
||||||
@@ -193,6 +193,9 @@ int have_devfd = 0;
|
@@ -193,6 +193,9 @@ int have_devfd = 0;
|
||||||
/* The name of the .(shell)rc file. */
|
/* The name of the .(shell)rc file. */
|
||||||
static char *bashrc_file = "~/.bashrc";
|
static char *bashrc_file = "~/.bashrc";
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Version: %{baseversion}%{patchleveltag}
|
Version: %{baseversion}%{patchleveltag}
|
||||||
Name: bash
|
Name: bash
|
||||||
Summary: The GNU Bourne Again shell
|
Summary: The GNU Bourne Again shell
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Group: System Environment/Shells
|
Group: System Environment/Shells
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Url: http://www.gnu.org/software/bash
|
Url: http://www.gnu.org/software/bash
|
||||||
@ -262,6 +262,9 @@ fi
|
|||||||
#%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
|
#%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 30 2010 Roman Rakus <rrakus@redhat.com> - 4.1.2-4
|
||||||
|
- Corrected requires patch (#563301)
|
||||||
|
|
||||||
* Fri Jan 22 2010 rrakus@redhat.com 4.1.2-3
|
* Fri Jan 22 2010 rrakus@redhat.com 4.1.2-3
|
||||||
- Don't use cond-rmatch patch
|
- Don't use cond-rmatch patch
|
||||||
- Use manso patch
|
- Use manso patch
|
||||||
|
Loading…
Reference in New Issue
Block a user