Displaying 14 results from an estimated 14 matches for "time_string".
2000 Nov 14
0
2.3.0p1, Solaris 7 and last login (fwd)
...4 16:04:21 2000
***************
*** 590,600 ****
--- 590,616 ----
int fdout, ptyfd, ttyfd, ptymaster;
pid_t pid;
+ #define BOIS_DIRTY_PATCH
+ #ifdef BOIS_DIRTY_PATCH
+ char hostname[MAXHOSTNAMELEN];
+ time_t last_login_time;
+ struct passwd * pw = s->pw;
+ char *time_string;
+ #endif
+
if (s == NULL)
fatal("do_exec_pty: no session");
ptyfd = s->ptyfd;
ttyfd = s->ttyfd;
+ #ifdef BOIS_DIRTY_PATCH
+ /* Get the time and hostname when the user last logged in. */
+ hostname[0] = '\0';
+ last_login_time = ge...
2002 Jan 30
0
[Bug 87] New: Last logon that gets reported upon login is the current login time
...MPX
else
do_pre_login(s);
@@ -682,13 +688,11 @@
/* administrative, login(1)-like work */
void
-do_login(Session *s, const char *command)
+do_login(Session *s, const char *command, const time_t found_last_login_time,
const char *last_host)
{
char *time_string;
- char hostname[MAXHOSTNAMELEN];
socklen_t fromlen;
struct sockaddr_storage from;
- time_t last_login_time;
struct passwd * pw = s->pw;
pid_t pid = getpid();
@@ -706,13 +710,6 @@
}
}
- /* Get the time and hostname whe...
2002 Apr 10
1
openssh-3.1p1 on GNU/Hurd
...Apr 9 20:59:48 2002
@@ -56,6 +56,7 @@
#include "serverloop.h"
#include "canohost.h"
#include "session.h"
+#include "xgethostname.h"
#ifdef HAVE_CYGWIN
#include <windows.h>
@@ -659,7 +660,7 @@
do_login(Session *s, const char *command)
{
char *time_string;
- char hostname[MAXHOSTNAMELEN];
+ char *hostname;
socklen_t fromlen;
struct sockaddr_storage from;
time_t last_login_time;
@@ -681,11 +682,9 @@
}
/* Get the time and hostname when the user last logged in. */
- if (options.print_lastlog) {
- hostname[0] = '\0';
+ if (options.p...
2000 Dec 27
1
PrintLastLog option is not honored
...ion.c Mon Sep 18 09:55:01 2000
|@@ -686,7 +686,7 @@
| */
| last_login_time = get_last_login_time(pw->pw_uid, pw->pw_name,
| buf, sizeof(buf));
|- if (last_login_time != 0) {
|+ if (last_login_time != 0 && options.print_lastlog) {
| time_string = ctime(&last_login_time);
| if (strchr(time_string, '\n'))
| *strchr(time_string, '\n') = 0;
Ciao
Christian
--
Debian Developer and Quality Assurance Team Member
1024/26CC7853 31E6 A8CA 68FC 284F 7D16 63EC A9E6 67FF 26...
2002 Apr 22
0
[Bug 101] session.c modifications for correct UNICOS behavior
...(is_winnt)
cygwin_set_impersonation_token(INVALID_HANDLE_VALUE);
@@ -668,6 +686,7 @@
printf("%s\n", aixloginmsg);
#endif /* WITH_AIXAUTHENTICATE */
+#ifndef _CRAY
if (options.print_lastlog && s->last_login_time != 0) {
time_string = ctime(&s->last_login_time);
if (strchr(time_string, '\n'))
@@ -678,6 +697,7 @@
printf("Last login: %s from %s\r\n", time_string,
s->hostname);
}
+#endif /* ! _CRAY */
do_motd();
}
@@...
2002 Feb 04
0
[Bug 101] New: session.c modifications for correct UNICOS behavior
...if (is_winnt)
cygwin_set_impersonation_token(INVALID_HANDLE_VALUE);
@@ -743,6 +760,7 @@
printf("%s\n", aixloginmsg);
#endif /* WITH_AIXAUTHENTICATE */
+#ifndef _CRAY
if (options.print_lastlog && last_login_time != 0) {
time_string = ctime(&last_login_time);
if (strchr(time_string, '\n'))
@@ -752,6 +770,7 @@
else
printf("Last login: %s from %s\r\n", time_string, hostna
me);
}
+#endif /* ! _CRAY */
do_motd();
}
@@ -1027,16 +1046,17...
2001 Sep 04
0
AIX Warning for expired password
...quot;
#include "session.h"
+#ifdef WITH_AIXAUTHENTICATE
+#include "misc.h"
+#endif /* WITH_AIXAUTHENTICATE */
+
#ifdef WITH_IRIX_PROJECT
#include <proj.h>
#endif /* WITH_IRIX_PROJECT */
@@ -675,13 +679,14 @@
void
do_login(Session *s, const char *command)
{
- char *time_string;
+ char *time_string,*msg;
char hostname[MAXHOSTNAMELEN];
socklen_t fromlen;
struct sockaddr_storage from;
time_t last_login_time;
struct passwd * pw = s->pw;
pid_t pid = getpid();
+ int retval;
/*
* Get IP address of client. If the connection is not a socket, let
@@ -730,6 +7...
2001 Mar 03
0
[PATCH] PrintLastLog option
...ostname, sizeof(hostname));
+ }
/* Record that there was a login on that tty from the remote host. */
@@ -748,5 +750,5 @@ do_login(Session *s, const char *command
#endif /* WITH_AIXAUTHENTICATE */
- if (last_login_time != 0) {
+ if (options.print_lastlog && last_login_time != 0) {
time_string = ctime(&last_login_time);
if (strchr(time_string, '\n'))
Index: sshd.8
--- sshd.8.prev
+++ sshd.8 Thu Feb 22 20:59:46 2001
@@ -350,4 +350,20 @@
The default is
.Dq no .
+.Pp
+Note: These messages can also be generated by PAM, so if you find that
+you are getting the message twice,...
2001 Apr 13
0
Fixed patch for Digital Unix SIA
...ndef HAVE_OSF_SIA
if (!(options.use_login && command == NULL))
do_login(s, command);
+#endif
/* Do common processing for the child, such as execing the command. */
do_child(s, command);
@@ -681,7 +685,6 @@
void
do_login(Session *s, const char *command)
{
- FILE *f;
char *time_string;
char buf[256];
char hostname[MAXHOSTNAMELEN];
@@ -729,15 +732,8 @@
}
#endif
- /* Done if .hushlogin exists or a command given. */
- if (command != NULL)
- return;
- snprintf(buf, sizeof(buf), "%.200s/.hushlogin", pw->pw_dir);
-#ifdef HAVE_LOGIN_CAP
- if (login_getcapbool(lc,...
2001 Apr 04
1
Solaris UseLogin problems
...(s);
+#endif
/* Do common processing for the child, such as execing the command. */
do_child(s, command);
@@ -685,18 +690,11 @@
return remote;
}
-/* administrative, login(1)-like work */
void
-do_login(Session *s, const char *command)
+call_record_login(Session *s)
{
- FILE *f;
- char *time_string;
- char buf[256];
- char hostname[MAXHOSTNAMELEN];
socklen_t fromlen;
struct sockaddr_storage from;
- struct stat st;
- time_t last_login_time;
struct passwd * pw = s->pw;
pid_t pid = getpid();
@@ -714,15 +712,30 @@
}
}
+ /* Record that there was a login on that tty from the remot...
2002 Sep 23
19
Call for testing for 3.5 OpenSSH
OpenBSD tree is heading into a lock and this includes OpenSSH. So we are
winding up for a 3.5 release. If we can get people to test the current
snapshots and report any problems that would improve the odds that your
platform won't be broke for 3.5.
Issues I know off of right now.
1. I can't test NeXT. So I TRULY need someone in that community to test
for me. Last I heard there was
2001 Mar 22
0
Solaris UseLogin problem
...record_login(getpid(), s->tty, s->pw->pw_name, s->pw->pw_uid,
+ get_remote_name_or_ip(), (struct sockaddr *)&from);
+#endif
+
/* Do common processing for the child, such as execing the command. */
do_child(s, command);
/* NOTREACHED */
@@ -700,35 +726,14 @@
char *time_string;
char buf[256];
char hostname[MAXHOSTNAMELEN];
- socklen_t fromlen;
- struct sockaddr_storage from;
struct stat st;
time_t last_login_time;
struct passwd * pw = s->pw;
- pid_t pid = getpid();
- /*
- * Get IP address of client. If the connection is not a socket, let
- * the address...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
...do_exec_pty(s, command, realname);
else
do_exec_no_pty(s, command);
@@ -656,7 +656,7 @@
/* administrative, login(1)-like work */
void
- -do_login(Session *s, const char *command)
+do_login(Session *s, const char *command, const char *realname)
{
char *time_string;
char hostname[MAXHOSTNAMELEN];
@@ -690,7 +690,7 @@
/* Record that there was a login on that tty from the remote
host. */
record_login(pid, s->tty, pw->pw_name, pw->pw_uid,
get_remote_name_or_ip(utmp_len,
options.verify_reverse_mapping),
- - (s...
2012 Apr 02
23
[PATCH 00 of 18] [v2] tools: fix bugs and build errors triggered by -O2 -Wall -Werror
Changes:
tools/blktap: remove unneeded pointer dereferencing in convert_dev_name_to_num
tools/blktap: constify string arrays in convert_dev_name_to_num
tools/blktap: fix params and physical-device parsing
tools/blktap: remove unneeded pointer dereferencing from img2qcow.c
tools/blktap: remove unneeded pointer dereferencing from qcow2raw.c
tools/blktap2: fix build errors caused by Werror in