[Pkg-shadow-commits] r481 - branches/experimental/debian/patches
Nicolas FRANCOIS
nekral-guest at costa.debian.org
Sun Aug 28 06:40:38 UTC 2005
Author: nekral-guest
Date: 2005-08-28 06:40:36 +0000 (Sun, 28 Aug 2005)
New Revision: 481
Modified:
branches/experimental/debian/patches/439_su_PAM_session
Log:
There is no more CLOSE_SESSIONS.
Modified: branches/experimental/debian/patches/439_su_PAM_session
===================================================================
--- branches/experimental/debian/patches/439_su_PAM_session 2005-08-27 18:30:03 UTC (rev 480)
+++ branches/experimental/debian/patches/439_su_PAM_session 2005-08-28 06:40:36 UTC (rev 481)
@@ -9,36 +9,6 @@
===================================================================
--- shadow-4.0.12.orig/src/su.c 2005-08-17 11:50:48.000000000 +0200
+++ shadow-4.0.12/src/su.c 2005-08-17 11:50:49.000000000 +0200
-@@ -191,7 +191,7 @@
- int fakelogin)
- {
- const char **args;
-- int child;
-+ int child = 0;
- sigset_t ourset;
- int status;
- int ret;
-@@ -242,8 +242,10 @@
- }
- /* NOT REACHED */
- #else
-- child = fork ();
-- if (child == 0) { /* child shell */
-+ if (getdef_bool("CLOSE_SESSIONS")) {
-+ child = fork ();
-+ }
-+ if (child == 0) { /* child shell or no CLOSE_SESSIONS */
- pam_end (pamh, PAM_SUCCESS);
-
- (void) execv (shellstr, (char **) args);
-@@ -260,6 +262,7 @@
- closelog ();
- exit (1);
- }
-+ /* Unreachable if ! CLOSE_SESSIONS */
- /* parent only */
- sigfillset (&ourset);
- if (sigprocmask (SIG_BLOCK, &ourset, NULL)) {
@@ -787,6 +790,7 @@
SYSLOG ((LOG_ERR, "pam_open_session: %s",
pam_strerror (pamh, ret)));
More information about the Pkg-shadow-commits
mailing list