search for: construct_utmpx

Displaying 9 results from an estimated 9 matches for "construct_utmpx".

2014 Feb 24
1
loginrec.c: bug in construct_utmpx() definition?
Hello, I am trying to cross compile OpenSSH_5.8p2 on linux for a powerpc target with uClibc available. My problem is that I get a error when loginrec.c is compiled: openssh/loginrec.c: In function 'construct_utmpx': openssh/loginrec.c:790:10: error: 'ut' undeclared (first use in this function) openssh/loginrec.c:790:10: note: each undeclared identifier is reported only once for each function it appears in My uClibc config includes support for UTMPX. Looking in openssh/loginrec.c at the mention...
2002 Jul 18
2
[Bug 345] w (uptime) command still indicates user is logged in after logout
http://bugzilla.mindrot.org/show_bug.cgi?id=345 stevesk at pobox.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Lutz.Jaenicke at aet.TU- | |Cottbus.DE ------- Additional Comments From stevesk at
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...int32_t)utx->ut_session; + futx->ut_syslen = (int16_t)utx->ut_syslen; + strncpy(futx->ut_host, utx->ut_host, sizeof(futx->ut_host)); +} +#endif static int wtmpx_perform_login(struct logininfo *li) @@ -1174,7 +1208,15 @@ struct utmpx utx; construct_utmpx(li, &utx); +#ifdef __sparcv9 + { + struct futmpx futx; + utmpx_to_futmpx(&utx , &futx); + return wtmpx_write(li, &futx); + } +#else return wtmpx_write(li, &utx); +#endif } @@ -1184,7 +1226,16 @@ struct utmp...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...IN_UTMPX strncpy(utx->ut_host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname)); # endif @@ -942,9 +942,7 @@ { struct utmpx utx; - memset(&utx, '\0', sizeof(utx)); - set_utmpx_time(li, &utx); - line_stripname(utx.ut_line, li->line, sizeof(utx.ut_line)); + construct_utmpx(li, &utx); # ifdef HAVE_ID_IN_UTMPX line_abbrevname(utx.ut_id, li->line, sizeof(utx.ut_id)); # endif --- session.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(...
2014 Oct 18
2
[Bug 2296] New: loginrec.c fails to compile when HAVE_ADDR_V6_IN_UTMP is defined
...nent: sshd Assignee: unassigned-bugs at mindrot.org Reporter: writeonce at midipix.org Created attachment 2487 --> https://bugzilla.mindrot.org/attachment.cgi?id=2487&action=edit loginrec.c: change the 'ut' typo to 'utx' where applicable In loginrec.c: construct_utmpx(), the effective code path when HAVE_ADDR_V6_IN_UTMP is defined contains a typo which results in failure to compile. Attached is a patch that fixes this error. * filed against 6.7, but applies also to the current version and several previous versions (6.6 at the least). -- You are receiving thi...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname)); # endif @@ -942,9 +942,7 @@ { struct utmpx utx; - memset(&utx, '\0', sizeof(utx)); - set_utmpx_time(li, &utx); - line_stripname(utx.ut_line, li->line, sizeof(utx.ut_line)); + construct_utmpx(li, &utx); # ifdef HAVE_ID_IN_UTMPX line_abbrevname(utx.ut_id, li->line, sizeof(utx.ut_id)); # endif --- session.c~ Sat Dec 1 18:37:08 2001 +++ session.c Tue Jan 29 10:56:59 2002 @@ -1866,7 +1866,7 @@ /* Record that the user has logged out. */ if (s->pid !=...
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...r, 16); + if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) { + ut->ut_addr_v6[0] = ut->ut_addr_v6[3]; + ut->ut_addr_v6[1] = 0; + ut->ut_addr_v6[2] = 0; + ut->ut_addr_v6[3] = 0; + } + } +# endif } #endif /* USE_UTMP || USE_WTMP || USE_LOGIN */ @@ -689,6 +705,9 @@ void construct_utmpx(struct logininfo *li, struct utmpx *utx) { +# ifdef HAVE_ADDR_V6_IN_UTMP + struct sockaddr_in6 *sa6; +# endif memset(utx, '\0', sizeof(*utx)); # ifdef HAVE_ID_IN_UTMPX line_abbrevname(utx->ut_id, li->line, sizeof(utx->ut_id)); @@ -725,6 +744,19 @@ if (li->hostaddr.sa.sa...
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...IN_UTMPX strncpy(utx->ut_host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname)); # endif @@ -942,9 +942,7 @@ { struct utmpx utx; - memset(&utx, '\0', sizeof(utx)); - set_utmpx_time(li, &utx); - line_stripname(utx.ut_line, li->line, sizeof(utx.ut_line)); + construct_utmpx(li, &utx); # ifdef HAVE_ID_IN_UTMPX line_abbrevname(utx.ut_id, li->line, sizeof(utx.ut_id)); # endif --- session.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_lo...
2010 Feb 27
24
Call for testing: OpenSSH-5.4
Hi, OpenSSH 5.4 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This is a big release, with a number of major new features and many bug fixes. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH