mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-30 23:13:49 +02:00
commit bash-20170224 snapshot
This commit is contained in:
@@ -1238,7 +1238,10 @@ maybe_make_restricted (name)
|
||||
temp++;
|
||||
if (restricted || (STREQ (temp, RESTRICTED_SHELL_NAME)))
|
||||
{
|
||||
#if defined (RBASH_STATIC_PATH_VALUE)
|
||||
temp_var = bind_variable ("PATH", RBASH_STATIC_PATH_VALUE, 0);
|
||||
stupidly_hack_special_variables ("PATH"); /* clear hash table */
|
||||
#endif
|
||||
set_var_read_only ("PATH");
|
||||
set_var_read_only ("SHELL");
|
||||
set_var_read_only ("ENV");
|
||||
|
||||
Reference in New Issue
Block a user