diff --git a/coreutils-pam.patch b/coreutils-pam.patch index 345f849..1c511e9 100644 --- a/coreutils-pam.patch +++ b/coreutils-pam.patch @@ -9,8 +9,8 @@ $(PROGRAMS): ../lib/libfetish.a ---- coreutils-5.2.0/src/su.c.pam 2004-02-23 17:40:54.000000000 +0000 -+++ coreutils-5.2.0/src/su.c 2004-02-23 17:40:54.000000000 +0000 +--- coreutils-5.2.0/src/su.c 2004-02-23 17:40:54.000000000 +0000 ++++ coreutils-5.2.1/src/su.c 2004-12-06 15:47:07.082619911 +0000 @@ -38,6 +38,16 @@ restricts who can su to UID 0 accounts. RMS considers that to be fascist. @@ -306,15 +306,10 @@ } /* Return 1 if SHELL is a restricted shell (one not returned by -@@ -586,9 +771,13 @@ - } - modify_environment (pw, shell); +@@ -588,7 +773,8 @@ + -+#ifdef USE_PAM -+ setfsuid(pw->pw_uid); -+ setfsgid(pw->pw_gid); -+#else ++#ifndef USE_PAM change_identity (pw); - if (simulate_login && chdir (pw->pw_dir)) - error (0, errno, _("warning: cannot change directory to %s"), pw->pw_dir); diff --git a/coreutils.spec b/coreutils.spec index 5af420b..f998bdb 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -4,7 +4,7 @@ Summary: The GNU core utilities: a set of tools commonly used in shell scripts Name: coreutils Version: 5.2.1 -Release: 33 +Release: 34 License: GPL Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -250,6 +250,9 @@ fi /sbin/runuser %changelog +* Mon Dec 6 2004 Tim Waugh 5.2.1-34 +- Don't set fs uid until after pam_open_session (bug #77791).. + * Thu Nov 25 2004 Tim Waugh 5.2.1-33 - Fixed colorls.csh (bug #139988). Patch from Miloslav Trmac.