fix for internal redirection flags colliding with open/fcntl flags; call memfd_create with MFD_NOEXEC_SEAL; fix for setting $BASH in su-started login shell; fix for unsetting $REPLY after nofork comsubs

This commit is contained in:
Chet Ramey
2024-05-01 11:39:51 -04:00
parent 9c430f6bf3
commit 1f42d15864
17 changed files with 118 additions and 357 deletions
+1 -1
View File
@@ -776,7 +776,7 @@ get_bash_name (void)
{
char *name;
if ((login_shell == 1) && RELPATH(shell_name))
if ((login_shell == 1) && su_shell)
{
if (current_user.shell == 0)
get_current_user_info ();