diff options
author | TBK <tbk@jjtc.dk> | 2017-10-28 11:31:04 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-10-28 11:40:46 +0200 |
commit | d60bf515aff21d0ef3eb0cfa45d92d5ee725e755 (patch) | |
tree | a49f0729b92a3ef8e88838f512cc7b879b78f698 /main/bash/privmode-setuid-fail.patch | |
parent | 39bfeece257a70de085fbbadf918fa26d3812212 (diff) | |
download | aports-d60bf515aff21d0ef3eb0cfa45d92d5ee725e755.tar.bz2 aports-d60bf515aff21d0ef3eb0cfa45d92d5ee725e755.tar.xz |
main/bash: upgrade to 4.4.12
Also modernize while being here.
Diffstat (limited to 'main/bash/privmode-setuid-fail.patch')
-rw-r--r-- | main/bash/privmode-setuid-fail.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/main/bash/privmode-setuid-fail.patch b/main/bash/privmode-setuid-fail.patch deleted file mode 100644 index 059857d0bf..0000000000 --- a/main/bash/privmode-setuid-fail.patch +++ /dev/null @@ -1,29 +0,0 @@ -*** ../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; |