summaryrefslogtreecommitdiffstats
path: root/abs/core/bash/privmode-setuid-fail.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-13 17:32:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-13 17:32:27 (GMT)
commitf7602bbf3f4c272c64e8ea7e12ea84744a3b6d7f (patch)
treec3fd9ce60605d6c09f34d8a81d0f70add98a720d /abs/core/bash/privmode-setuid-fail.patch
parent387e5044d2d48fc3af7174e35623df9ffed0ba30 (diff)
downloadlinhes_pkgbuild-f7602bbf3f4c272c64e8ea7e12ea84744a3b6d7f.zip
linhes_pkgbuild-f7602bbf3f4c272c64e8ea7e12ea84744a3b6d7f.tar.gz
linhes_pkgbuild-f7602bbf3f4c272c64e8ea7e12ea84744a3b6d7f.tar.bz2
bash: update to 4.4.019
Diffstat (limited to 'abs/core/bash/privmode-setuid-fail.patch')
-rw-r--r--abs/core/bash/privmode-setuid-fail.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/abs/core/bash/privmode-setuid-fail.patch b/abs/core/bash/privmode-setuid-fail.patch
deleted file mode 100644
index 059857d..0000000
--- a/abs/core/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;