diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2014-06-20 13:32:27 +0200 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-06-20 13:32:27 +0200 |
| commit | a7d689678a9c8f50ddb81af366bde03a47164f40 (patch) | |
| tree | b23693f53f587221e0ed35fc7b43e5d441a52afd /main/bash/bash_4.3-fix-setuid.patch | |
| parent | 101c1d4f70f18ff6a77b88fa67bef2792f063570 (diff) | |
| download | aports-a7d689678a9c8f50ddb81af366bde03a47164f40.tar.bz2 aports-a7d689678a9c8f50ddb81af366bde03a47164f40.tar.xz | |
main/bash: upgrade to 4.3.018 and update the suid patch
Diffstat (limited to 'main/bash/bash_4.3-fix-setuid.patch')
| -rw-r--r-- | main/bash/bash_4.3-fix-setuid.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/main/bash/bash_4.3-fix-setuid.patch b/main/bash/bash_4.3-fix-setuid.patch deleted file mode 100644 index 4f8a7a0999..0000000000 --- a/main/bash/bash_4.3-fix-setuid.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git shell.c shell.c -index bbc8a66..5bfd466 100644 ---- shell.c -+++ shell.c -@@ -1226,8 +1226,12 @@ uidget () - void - disable_priv_mode () - { -- setuid (current_user.uid); -- setgid (current_user.gid); -+ -+ if( (setuid (current_user.uid) !=0) || (setgid (current_user.gid) != 0) ){ -+ report_error("Drop privileges failed!!\n"); -+ exit(EX_DROPFAIL); -+ } -+ - current_user.euid = current_user.uid; - current_user.egid = current_user.gid; - } -diff --git shell.h shell.h -index 243e467..c3625be 100644 ---- shell.h -+++ shell.h -@@ -72,6 +72,7 @@ extern int EOF_Reached; - #define EX_REDIRFAIL 259 /* redirection failed */ - #define EX_BADASSIGN 260 /* variable assignment error */ - #define EX_EXPFAIL 261 /* word expansion failed */ -+#define EX_DROPFAIL 262 /* Drop privileges failed */ - - /* Flag values that control parameter pattern substitution. */ - #define MATCH_ANY 0x000 |
