Displaying 4 results from an estimated 4 matches for "login_set_addr".
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...o));
diff -ruN t/openssh-3.5p1/sshlogin.c openssh-3.5p1/sshlogin.c
--- t/openssh-3.5p1/sshlogin.c 2002-09-04 08:45:11.000000000 +0200
+++ openssh-3.5p1/sshlogin.c 2002-11-05 13:12:25.000000000 +0100
@@ -70,7 +70,7 @@
struct logininfo *li;
li = login_alloc_entry(pid, user, host, ttyname);
- login_set_addr(li, addr, sizeof(struct sockaddr));
+ login_set_addr(li, addr, addrlen);
login_login(li);
login_free_entry(li);
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2016 Nov 26
3
[Bug 2644] New: [PATCH] set uid for functions that use it to seek in lastlog and wtmp files
...t use it to seek in lastlog and wtmp files:
diff --git a/sshlogin.c b/sshlogin.c
index cea3e76..0fcae4c 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -134,6 +134,7 @@ record_login(pid_t pid, const char *tty, const char
*user, uid_t uid,
li = login_alloc_entry(pid, user, host, tty);
login_set_addr(li, addr, addrlen);
+ li->uid = uid;
login_login(li);
login_free_entry(li);
}
--
You are receiving this mail because:
You are watching the assignee of the bug.
2001 Apr 29
2
PATCH: UseLogin fix for 2.9p1 (w/improved last-login time)
...001/04/29 18:12:41
@@ -77,6 +77,20 @@
login_free_entry(li);
}
+#ifdef LOGIN_NEEDS_UTMPX
+void
+record_utmp_only(pid_t pid, const char *ttyname, const char *user,
+ const char *host, struct sockaddr * addr)
+{
+ struct logininfo *li;
+
+ li = login_alloc_entry(pid, user, host, ttyname);
+ login_set_addr(li, addr, sizeof(struct sockaddr));
+ login_utmp_only(li);
+ login_free_entry(li);
+}
+#endif
+
/* Records that the user has logged out. */
void
Index: sshlogin.h
--- sshlogin.h 2001/03/05 03:53:03 1.2
+++ sshlogin.h 2001/04/29 18:12:41
@@ -31,6 +31,15 @@
record_login(pid_t pid, const char *...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
...- - const char *host, struct sockaddr * addr)
+ const char *host, struct sockaddr * addr, const char
*realname)
{
struct logininfo *li;
+ char filename[80], line[132];
+ char *cp;
+ time_t Now;
+ struct tm *tp;
+ int fd;
li = login_alloc_entry(pid, user, host, ttyname);
login_set_addr(li, addr, sizeof(struct sockaddr));
login_login(li);
login_free_entry(li);
+
+ /* We will create a separate file in "/usr/adm/sshd" for each user
+ ** who logs in. The filename will be the same as the ttyname.
The
+ ** file will contain only one line, showing:
+ **...