summaryrefslogtreecommitdiff
path: root/bash/bash-2.05b/privmode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash-2.05b/privmode.patch')
-rw-r--r--bash/bash-2.05b/privmode.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/bash/bash-2.05b/privmode.patch b/bash/bash-2.05b/privmode.patch
index e69de29bb2..479b0bf93c 100644
--- a/bash/bash-2.05b/privmode.patch
+++ b/bash/bash-2.05b/privmode.patch
@@ -0,0 +1,11 @@
+--- bash-2.02.1.orig/shell.c
++++ bash-2.02.1/shell.c
+@@ -378,7 +378,7 @@
+ if (dump_translatable_strings)
+ read_but_dont_execute = 1;
+
+- if (running_setuid && privileged_mode == 0)
++ if (running_setuid && privileged_mode == 0 && act_like_sh == 0)
+ disable_priv_mode ();
+
+ /* Need to get the argument to a -c option processed in the