In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3)

OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=263
This commit is contained in:
Dr. Werner Fink 2018-06-04 11:40:45 +00:00 committed by Git OBS Bridge
parent 3b530b728b
commit 526b82607c
3 changed files with 9 additions and 4 deletions

View File

@ -157,11 +157,13 @@
disable_priv_mode ();
/* Need to get the argument to a -c option processed in the
@@ -1277,6 +1278,7 @@ disable_priv_mode ()
@@ -1277,6 +1278,9 @@ disable_priv_mode ()
{
int e;
+ setgroups(0, NULL);
+ if (!current_user.user_name)
+ get_current_user_info();
+ initgroups (current_user.user_name, current_user.gid);
if (setuid (current_user.uid) < 0)
{
e = errno;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 4 09:21:15 UTC 2018 - werner@suse.de
- In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3) (boo#1095670)
-------------------------------------------------------------------
Wed Apr 18 10:49:26 UTC 2018 - werner@suse.de

View File

@ -23,9 +23,7 @@ BuildRequires: audit-devel
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: fdupes
%if %suse_version > 1220
BuildRequires: makeinfo
%endif
BuildRequires: ncurses-devel
BuildRequires: patchutils
BuildRequires: pkg-config