search for: utmp_write_direct

Displaying 3 results from an estimated 3 matches for "utmp_write_direct".

2000 Aug 01
2
[2.1.1p4] utmp patch for SunOS 4.1.x
Follow-on to Charles Levert's <charles at comm.polymtl.ca> work on utmp_write_direct. Fixed: -- At logout, the utmp entry is cleared. Tested on SunOS 4.1.4. The code I added to loginrec.c is restricted to SUNOS4 pending QA testing on other platforms. This patch incorporates the work done by Charles Levert on 7/25/2000 00:43:22. (Do any of us sleep at...
2000 Jul 26
2
[2.1.1p4] utmp related patches plus unresolved bugs description
Fixed: -- On systems such as SunOS4 where the system include files are no help in locating the utmp file (et al.), configure can define their location in CONF_*, but defines.h never used these. -- Might as well put in the usual location for SunOS4. -- In loginrec.c (utmp_write_direct), writing to the utmp file was not done correctly. Remaining: -- At logout, the utmp entry cannot be cleared since ttyslot cannot find the offset for the terminal since it is the parent process that calls this stuff and it does not execute in the context of the terminal. It works at login s...
2016 Jan 19
2
OpenSSH portability & buildsystem fixes
...} diff --git a/loginrec.c b/loginrec.c index 788553e..332da3e 100644 --- a/loginrec.c +++ b/loginrec.c @@ -1032,7 +1032,7 @@ utmpx_perform_login(struct logininfo *li) return (0); } # else - if (!utmpx_write_direct(li, &ut)) { + if (!utmpx_write_direct(li, &utx)) { logit("%s: utmp_write_direct() failed", __func__); return (0); } diff --git a/misc.c b/misc.c index 3170218..aee3631 100644 --- a/misc.c +++ b/misc.c @@ -29,6 +29,9 @@ #include <sys/types.h> #include <sys/ioctl.h> #include <sys/socket.h> +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#end...