diff options
author | Steve Langasek <vorlon@debian.org> | 2008-07-26 19:58:55 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:01:55 -0800 |
commit | 61299e8db666a875e7468aa4b57bb71ae3dd9e30 (patch) | |
tree | 13e6cad74a8993316b814d2eda5936fab4457694 /debian/patches-applied/pam_unix_setreuid_juggling.patch | |
parent | fe177a4cc394567465a75ed4899e0f67024a52fb (diff) | |
download | pam-61299e8db666a875e7468aa4b57bb71ae3dd9e30.tar.gz pam-61299e8db666a875e7468aa4b57bb71ae3dd9e30.tar.bz2 pam-61299e8db666a875e7468aa4b57bb71ae3dd9e30.zip |
fix patch names so it's clear these are all for pam_unix
Diffstat (limited to 'debian/patches-applied/pam_unix_setreuid_juggling.patch')
-rw-r--r-- | debian/patches-applied/pam_unix_setreuid_juggling.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches-applied/pam_unix_setreuid_juggling.patch b/debian/patches-applied/pam_unix_setreuid_juggling.patch new file mode 100644 index 00000000..0605e108 --- /dev/null +++ b/debian/patches-applied/pam_unix_setreuid_juggling.patch @@ -0,0 +1,22 @@ +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); + } + |