search for: utmp_write_entry

Displaying 7 results from an estimated 7 matches for "utmp_write_entry".

2001 Jun 06
1
One more UseLogin tweak
...cture. The following patch takes care of this: --- old/loginrec.c Wed Jun 6 11:12:14 2001 +++ loginrec.c Wed Jun 6 11:13:42 2001 @@ -448,6 +448,8 @@ login_utmp_only(struct logininfo *li) { li->type = LTYPE_LOGIN; + /* set the timestamp */ + login_set_current_time(li); # ifdef USE_UTMP utmp_write_entry(li); # endif ..wayne..
2001 Jun 21
0
Output of last command is strange on Solaris 2.6/8 (OpenSSH 2.9p2)
....foo.co.jp Thu Jun 21 12:45 - 20:02 (07:16) hoge pts/2 foo.bar.co.jp Thu Jun 21 11:12 - 15:30 (04:17) ... --- openssh-2.9p2.orig/loginrec.c Wed May 9 05:34:33 2001 +++ openssh-2.9p2/loginrec.c Thu Jun 21 20:23:58 2001 @@ -451,15 +451,19 @@ # ifdef USE_UTMP utmp_write_entry(li); # endif +#ifndef __sun # ifdef USE_WTMP wtmp_write_entry(li); # endif +#endif # ifdef USE_UTMPX utmpx_write_entry(li); # endif +#ifndef __sun # ifdef USE_WTMPX wtmpx_write_entry(li); # endif +#endif return 0; } #endif If there is a right method of thi...
2001 Aug 21
0
Resend: loginrec.c patch
...t;8------>8------>8------>8--- Index: loginrec.c --- loginrec.c 2001/08/06 23:29:17 1.34 +++ loginrec.c 2001/08/21 17:53:43 @@ -448,6 +448,8 @@ login_utmp_only(struct logininfo *li) { li->type = LTYPE_LOGIN; + /* set the timestamp */ + login_set_current_time(li); # ifdef USE_UTMP utmp_write_entry(li); # endif @@ -456,9 +458,10 @@ # endif # ifdef USE_UTMPX utmpx_write_entry(li); -# endif -# ifdef USE_WTMPX +# else +# ifdef USE_WTMPX wtmpx_write_entry(li); +# endif # endif return 0; } ---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
2000 Aug 01
2
[2.1.1p4] utmp patch for SunOS 4.1.x
...setttyent(); + while ((struct ttyent *)0 != (ty = getttyent())) { + tty++; + if(0 == strncmp(ty->ty_name,ut->ut_line,sizeof(ut->ut_line))) + break; + } + endttyent(); + if((struct ttyent *)0 == ty) { + log("utmp_write_entry: tty not found"); + return(1); + } + + #else /* FIXME */ + tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */ + #endif /* SUNOS4 && HAVE_GETTTYENT */ + if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {...
2001 Apr 29
2
PATCH: UseLogin fix for 2.9p1 (w/improved last-login time)
...ING(for obsolete utmp and wtmp in solaris2.x) Index: loginrec.c --- loginrec.c 2001/02/22 21:23:21 1.32 +++ loginrec.c 2001/04/29 18:12:40 @@ -443,6 +443,27 @@ return 0; } +#ifdef LOGIN_NEEDS_UTMPX +int +login_utmp_only(struct logininfo *li) +{ + li->type = LTYPE_LOGIN; +# ifdef USE_UTMP + utmp_write_entry(li); +# endif +# ifdef USE_WTMP + wtmp_write_entry(li); +# endif +# ifdef USE_UTMPX + utmpx_write_entry(li); +# endif +# ifdef USE_WTMPX + wtmpx_write_entry(li); +# endif + return 0; +} +#endif + /** ** getlast_entry: Call low-level functions to retrieve the last login ** time....
2001 Oct 23
8
Another round of testing calls.
Outside the known 'Hang-on-exit' bug and the Solaris 'PAM_TTY_KLUDGE' required. *WHAT* other issues *MUST* be address before 3.0 which is approaching fast? Those running NeXTStep I need conformation that it works under NeXT. My current Slab is packed in a storage unit due to a fire in my apartment complex (happened above me so I'm wrapping up dealing with that crap =). -
2001 Sep 14
8
Call for testers.
http://bass.directhit.com/openssh_snap/ Starting tonight I plan on tracking changes very closely with the OpenBSD tree. I need people to test the latest snapshot (9/14 at of right now) and report success or failure on compiling. I am starting this now because we are looking at a code freeze soon and I really want to ensure it compiles and runs on all existing platforms. So we (the portable