Blame SOURCES/bash-4.3-cve-2016-7543.patch
|
|
462fb2 |
diff --git a/variables.c b/variables.c
|
|
|
462fb2 |
index b7ebaea..5e2986f 100644
|
|
|
462fb2 |
--- a/variables.c
|
|
|
462fb2 |
+++ b/variables.c
|
|
|
462fb2 |
@@ -467,7 +467,11 @@ initialize_shell_variables (env, privmode)
|
|
|
462fb2 |
#endif
|
|
|
462fb2 |
set_if_not ("PS2", secondary_prompt);
|
|
|
462fb2 |
}
|
|
|
462fb2 |
- set_if_not ("PS4", "+ ");
|
|
|
462fb2 |
+
|
|
|
462fb2 |
+ if (current_user.euid == 0)
|
|
|
462fb2 |
+ bind_variable ("PS4", "+ ", 0);
|
|
|
462fb2 |
+ else
|
|
|
462fb2 |
+ set_if_not ("PS4", "+ ");
|
|
|
462fb2 |
|
|
|
462fb2 |
/* Don't allow IFS to be imported from the environment. */
|
|
|
462fb2 |
temp_var = bind_variable ("IFS", " \t\n", 0);
|
|
|
462fb2 |
--
|
|
|
462fb2 |
2.9.3
|
|
|
462fb2 |
|