]> andersk Git - openssh.git/commitdiff
- (tim) [session.c] Logout records were not updated on systems with
authortim <tim>
Tue, 7 Feb 2006 23:17:44 +0000 (23:17 +0000)
committertim <tim>
Tue, 7 Feb 2006 23:17:44 +0000 (23:17 +0000)
   post auth privsep disabled due to bug 1086 changes. Analysis and patch
   by vinschen at redhat.com. OK tim@, dtucker@.

ChangeLog
session.c

index cd3a23425a48ffb61c0a8fb5b77733e39931025e..a20e190f90864af9a711dd876ae6df98c5f4b107 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+20060208
+ - (tim) [session.c] Logout records were not updated on systems with
+   post auth privsep disabled due to bug 1086 changes. Analysis and patch
+   by vinschen at redhat.com. OK tim@, dtucker@.
+
 20060206
  - (tim) [configure.ac] Remove unnecessary tests for net/if.h and 
    netinet/in_systm.h. OK dtucker@.
index 2bf9044048b6b97d324353f9aebcc16107ff94ff..0cbd5fbb227028855c3daff49301bbad2939af2c 100644 (file)
--- a/session.c
+++ b/session.c
@@ -2176,7 +2176,6 @@ session_exit_message(Session *s, int status)
 
        /* disconnect channel */
        debug("session_exit_message: release channel %d", s->chanid);
-       s->pid = 0;
 
        /*
         * Adjust cleanup callback attachment to send close messages when
@@ -2238,6 +2237,7 @@ session_close_by_pid(pid_t pid, int status)
                session_exit_message(s, status);
        if (s->ttyfd != -1)
                session_pty_cleanup(s);
+       s->pid = 0;
 }
 
 /*
This page took 0.087506 seconds and 5 git commands to generate.