aboutsummaryrefslogtreecommitdiff
path: root/debian/patches-applied/pam_unix_setreuid_juggling.patch
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-07-28 13:44:19 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:18 -0800
commit5235e52b391f83d0334d6db064765e1c9079e0c9 (patch)
treea2662f4bb22963ce0803cf2cf170814dc21bd6f5 /debian/patches-applied/pam_unix_setreuid_juggling.patch
parenta8f1136ee50388f7fc1c7936379416bbee368957 (diff)
downloadpam-5235e52b391f83d0334d6db064765e1c9079e0c9.tar.gz
pam-5235e52b391f83d0334d6db064765e1c9079e0c9.tar.bz2
pam-5235e52b391f83d0334d6db064765e1c9079e0c9.zip
drop the patch to restore the particular setreuid() handling, which was in fact
buggy before and fixed now.
Diffstat (limited to 'debian/patches-applied/pam_unix_setreuid_juggling.patch')
-rw-r--r--debian/patches-applied/pam_unix_setreuid_juggling.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/debian/patches-applied/pam_unix_setreuid_juggling.patch b/debian/patches-applied/pam_unix_setreuid_juggling.patch
deleted file mode 100644
index 0605e108..00000000
--- a/debian/patches-applied/pam_unix_setreuid_juggling.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-This particular setreuid() is only needed if we don't have any root
-privs at all, so make it conditional like it was pre-1.0.
-
-Authors: Steve Langasek <vorlon@debian.org>
-
-Upstream status: to be submitted
-
-Index: pam.deb/modules/pam_unix/passverify.c
-===================================================================
---- pam.deb.orig/modules/pam_unix/passverify.c
-+++ pam.deb/modules/pam_unix/passverify.c
-@@ -187,8 +187,8 @@
- if (save_uid == (*pwd)->pw_uid)
- setreuid(save_uid, save_euid);
- else {
-- setreuid(-1, 0);
-- setreuid(save_uid, -1);
-+ if (setreuid(-1, 0) == -1)
-+ setreuid(save_uid, -1);
- setreuid(-1, save_euid);
- }
-