Displaying 4 results from an estimated 4 matches for "wtmpx_get_entry".
Did you mean:
wtmp_get_entry
2002 Jul 09
0
[Bug 348] New: infinite loop scanning wtmpx
...ion: -current
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: rodney at bond.net
This is with OpenSSH 3.4p1.
In the function wtmpx_get_entry() in the file loginrec.c from lines
1264 through 1292 there is a while-loop with the test condition
of "!found". Within the while-loop when the test condition wtmpx_islogin()
returns true the action "found = 1;" should be done.
Otherwise the while-loop will loop forever on a wtm...
2000 Jun 12
1
AIX and 2.1.1p1
The new login code works fine with AIX 4.3. Two nits, though. If
--disable-lastlog is defined, the code still tries to slog through wtmp
to determine the last login time. Is this a bug or a feature? If a
feature, change the DISABLE_LASTLOG test below to WITH_AIXAUTHENTICATE.
Also, a small typo in configure.in, plus an AIX tweak.
--- configure.in.orig Thu Jun 8 21:58:35 2000
+++ configure.in Mon
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...+#ifdef __sparcv9
+wtmpx_islogin(struct logininfo *li, struct futmpx *utx)
+#else
wtmpx_islogin(struct logininfo *li, struct utmpx *utx)
+#endif
{
if ( strncmp(li->username, utx->ut_name,
MIN_SIZEOF(li->username, utx->ut_name)) == 0 ) {
@@ -1226,7 +1281,11 @@
wtmpx_get_entry(struct logininfo *li)
{
struct stat st;
+#ifdef __sparcv9
+ struct futmpx utx;
+#else
struct utmpx utx;
+#endif
int fd, found=0;
/* Clear the time entries */
@@ -1245,7 +1304,11 @@
}
/* Seek to the start of the last struct utmpx */
+#ifdef __...
2007 Jan 17
0
login_get_lastlog - nss enviornment - works in shell env, doesn't work when sshd calls it.
...TIME_IN_UTMP) || defined(HAVE_TV_IN_UTMP))
/* retrieve last login time from utmp */
return (wtmp_get_entry(li));
# elif defined(USE_WTMPX) && \
(defined(HAVE_TIME_IN_UTMPX) || defined(HAVE_TV_IN_UTMPX))
/* If wtmp isn't available, try wtmpx */
return (wtmpx_get_entry(li));
# else
/* Give up: No means of retrieving last login time */
return (0);
# endif /* DISABLE_LASTLOG */
#endif /* USE_LASTLOG */
}
struct logininfo *
login_get_lastlog(struct logininfo *li, const int uid)
{
struct passwd *pw;
memset(li, '\0', sizeof(*l...