Commit c8f266be authored by Luca Giambonini's avatar Luca Giambonini

bash 5.0.011 [skip-ci]

fix chakra/chakrabuildsystem#28
parent 27b0a4c4
Pipeline #4627 skipped
pkgname=bash
_basever=4.4
_patchlevel=012 #prepare for some patches
_basever=5.0
_patchlevel=011
pkgver=$_basever.$_patchlevel
pkgrel=1
pkgdesc="The GNU Bourne Again shell"
......@@ -9,7 +9,7 @@ license=('GPL')
url="http://www.gnu.org/software/bash/bash.html"
groups=('base')
backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout})
depends=('readline>=7.0' 'glibc')
depends=('readline>=7.0' glibc ncurses)
optdepends=('bash-completion: for tab completion')
provides=('sh')
install=bash.install
......@@ -19,25 +19,24 @@ source=(https://ftp.gnu.org/gnu/bash/bash-$_basever.tar.gz{,.sig}
dot.bash_logout
system.bashrc
system.bash_logout)
sha1sums=('8de012df1e4f3e91f571c3eb8ec45b43d7c747eb'
sha1sums=('d116b469b9e6ea5264a74661d3a4c797da7f997b'
'SKIP'
'3211397399c367a501d103d36abfe5c7cadfeab2'
'672c3c0c28c3642a5cff0e4093ff98359c747ff0'
'9fd0cfda5b85651169f8761a834941b1f6f53952'
'895ffd3f5c729271859a659c4ca17aefc3fda927'
'0bc4dc72ef407eefe27b6ba5b384ccddb3e0852b'
'b0a20634e049a7b747703235b96ac0da10215d99'
'c9b7329897295301879a9600d96b2182ea2023b1'
'21cf7e0c6151de7fe8aca0bab8deb601bac2849e'
'32789657933c288d81210dd96a6b08e67207b593'
'8eee9cf9997215bd14f53dfc25c97186cee9437c'
'59d9e79adb1fc35e086caa0fa2af49381fe8b2f5'
'8924cde74fbb4fafeaf0ff6b5e4e94fcd2c2b98a'
'b38e9df20869643ef9388cbab585610a20ccc847'
'4bd44109ff79f0d6da19c27948dc40db9598da85'
'31180db58d25591f0744fc6923df1f8a97f0d19b'
'240c287dc60cb69185a2a05b1341bfceafd1071a'
'6dcceca364953498d3eb0c18c49fb0f3374fa3c2')
'9b8c7b32bf434d36b030c37b54fe8cebe54e2ab7'
'44a3a849a6826571115f9920405edeca3d8287ad'
'f371117fb06427e2b480fb796ee27f467a2d951a'
'e0adfba3d5e9b96911c771140e03ec892e732be3'
'08aac2d877b65e5816c3a73ee49a78261988597c'
'9cf8246582e3a03f79791a6922c8331c2564a51e'
'43e1f09bc57bb442603d4c8691d6f39e378a0bfc'
'953e54638c2e0f3bed5f6589df6b9710f5d6bd35'
'38e2101c03c9d48595df248a5115b61bd62c0b00'
'f938ba0730f63f4535eaf4298ae4ebe1121553ca'
'c8dfa690a081b15826737cab955ff2d79c69dd7a')
validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') # Chet Ramey
if [[ $((10#${_patchlevel})) -gt 0 ]]; then
......
*** ../bash-4.3-patched/shell.c 2014-01-14 08:04:32.000000000 -0500
--- shell.c 2014-06-06 16:29:01.000000000 -0400
***************
*** 1227,1232 ****
disable_priv_mode ()
{
! setuid (current_user.uid);
! setgid (current_user.gid);
current_user.euid = current_user.uid;
current_user.egid = current_user.gid;
--- 1229,1246 ----
disable_priv_mode ()
{
! int e;
!
! if (setuid (current_user.uid) < 0)
! {
! e = errno;
! sys_error (_("cannot set uid to %d: effective uid %d"), current_user.uid, current_user.euid);
! #if defined (EXIT_ON_SETUID_FAILURE)
! if (e == EAGAIN)
! exit (e);
! #endif
! }
! if (setgid (current_user.gid) < 0)
! sys_error (_("cannot set gid to %d: effective gid %d"), current_user.gid, current_user.egid);
!
current_user.euid = current_user.uid;
current_user.egid = current_user.gid;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment