Displaying 7 results from an estimated 7 matches for "pty_release".
2007 Dec 21
17
[Bug 1419] New: Fix PTY handling on Mac OS X
https://bugzilla.mindrot.org/show_bug.cgi?id=1419
Summary: Fix PTY handling on Mac OS X
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.7p1
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: ssh
AssignedTo: bitbucket at mindrot.org
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...ion.c~ Tue Nov 13 07:46:19 2001
+++ session.c Mon Nov 19 12:08:34 2001
@@ -1863,7 +1863,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c~ Tue May 8 16:33:06 2001
+++ sshlogin.c Mon Nov 19 12:08:34 2001
@@ -94,11 +94,11 @@
/* Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct logininf...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...Jan 29 10:56:59 2002
@@ -1866,7 +1866,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c~ Tue May 8 16:33:06 2001
+++ sshlogin.c Tue Jan 29 10:56:59 2002
@@ -94,11 +94,11 @@
/* Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct loginin...
2002 Jan 30
0
[Bug 87] New: Last logon that gets reported upon login is the current login time
...do_motd();
@@ -1866,7 +1863,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...c.orig Thu Nov 15 09:35:02 2001
+++ session.c Thu Nov 15 09:38:01 2001
@@ -1856,7 +1856,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c.orig Thu Nov 15 09:35:02 2001
+++ sshlogin.c Thu Nov 15 09:38:01 2001
@@ -94,11 +94,11 @@
/* Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct log...
2001 Jan 29
1
Solaris wtmpx patch
...e);
}
/* Release the pseudo-tty. */
@@ -1796,7 +1796,7 @@
fatal_remove_cleanup(pty_cleanup_proc, (void *)s);
/* Record that the user has logged out. */
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
diff -u -r openssh-2.3.0p1.orig/ssh.h openssh-2.3.0p1/ssh.h
--- openssh-2.3.0p1.orig/ssh.h Fri Oct 13 22:23:12 2000
+++ openssh-2.3.0p1/ssh.h Fri Jan 26 14:58:01 2001
@@ -310,7 +310,7 @@
* Records that the user has logged out. This does many thigs normally done
* by login(1) or ini...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
.../* Remove the file which contains login info. */
+ {
+ char filename[80];
+ char *cp;
+
+ cp = strrchr(s->tty, '/');
+ if (cp != NULL) {
+ sprintf(filename, "/usr/adm/sshd/%s", cp);
+ unlink(filename);
+ }
+ }
+
/* Release the pseudo-tty. */
pty_release(s->tty);
@@ -1921,7 +1935,7 @@
}
static void
- -do_authenticated2(Authctxt *authctxt)
+do_authenticated2(Authctxt *authctxt, const char *realname)
{
- - server_loop2(authctxt);
+ server_loop2(authctxt, realname);
}
diff -ru openssh-3.1p1/session.h openssh-3.1p1-mods/session....