From: Adam Gołębiowski Date: Wed, 23 Mar 2005 16:01:05 +0000 (+0000) Subject: - added missing setfsgid() call (from romke (at) estrefa.pl) X-Git-Tag: AC-STABLE~1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=3f54d8815165fe8d7c62ad65862ab6cfc9f631dc;p=packages%2Fcoreutils.git - added missing setfsgid() call (from romke (at) estrefa.pl) Changed files: coreutils-pam.patch -> 1.6 --- diff --git a/coreutils-pam.patch b/coreutils-pam.patch index 4fe71d5..a53879f 100644 --- a/coreutils-pam.patch +++ b/coreutils-pam.patch @@ -628,12 +628,13 @@ diff -Nur coreutils-5.2.1.orig/src/su.c coreutils-5.2.1/src/su.c } /* Return 1 if SHELL is a restricted shell (one not returned by -@@ -577,9 +746,14 @@ +@@ -577,9 +746,15 @@ } modify_environment (pw, shell); + +#ifdef USE_PAM ++ setfsgid(pw->pw_gid); + setfsuid(pw->pw_uid); +#else change_identity (pw);