File bash-4.3-boo1192785.patch of Package bash.41089
Backport from boo#1095670 to fix boo#1192785:
setuid causing permission denied on popen
---
shell.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- shell.c
+++ shell.c 2021-12-07 09:53:33.954804244 +0000
@@ -1236,6 +1236,9 @@ uidget ()
void
disable_priv_mode ()
{
+ if (!current_user.user_name)
+ get_current_user_info();
+ initgroups (current_user.user_name, current_user.gid);
setuid (current_user.uid);
setgid (current_user.gid);
current_user.euid = current_user.uid;