search for: have_host_in_utmp

Displaying 17 results from an estimated 17 matches for "have_host_in_utmp".

2000 Jul 02
0
patch for NetBSD utmp (ut_name instead of ut_host)
...K_HEADER_FOR_FIELD(ut_name, utmp.h, HAVE_NAME_IN_UTMP) +OSSH_CHECK_HEADER_FOR_FIELD(ut_name, utmpx.h, HAVE_NAME_IN_UTMPX) +OSSH_CHECK_HEADER_FOR_FIELD(ut_user, utmp.h, HAVE_USER_IN_UTMP) +OSSH_CHECK_HEADER_FOR_FIELD(ut_user, utmpx.h, HAVE_USER_IN_UTMPX) OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP) -------------- next part -------------- $NetBSD: patch-al,v 1.1 2000/07/02 22:07:56 itojun Exp $ --- loginrec.c- Mon Jul 3 06:49:20 2000 +++ loginrec.c Mon Jul 3 06:51:59 2000 @@ -618,3 +618,9 @@ /* Use strncpy because we don't necessarily want null termination */ +# ifdef HAVE_USER_IN_UT...
1999 Dec 23
2
Releasing a code version that stays for a while
I've been working on a package for openssh to include in the NetBSD package system (similar to the FreeBSD ports system). I'm being hindered in this by the fact that updates to these packages can be extremely slow (2-3 days minimum, more like 2 weeks including testing), too slow to compensate for the fact that the tarfiles for back-level versions of openssh-1.2pre* are going away. Given
1999 Dec 24
5
ANNOUNCE: openssh-1.2.1pre20
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 openssh-1.2.1pre20 has been released at: http://violet.ibs.com.au/openssh/files/ This release integrates more of Andre Lucas' portability patch, Ben Taylor's utmpx patch and some cleanups and bugfixes of my own. The auth-passwd failures should be fixed, as should lastlog support on NetBSD. Since Andre Lucas' patch included platform
1999 Dec 24
5
ANNOUNCE: openssh-1.2.1pre20
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 openssh-1.2.1pre20 has been released at: http://violet.ibs.com.au/openssh/files/ This release integrates more of Andre Lucas' portability patch, Ben Taylor's utmpx patch and some cleanups and bugfixes of my own. The auth-passwd failures should be fixed, as should lastlog support on NetBSD. Since Andre Lucas' patch included platform
1999 Dec 09
1
bsd-login.c in pre17
...gin.c Thu Dec 9 14:58:42 1999 @@ -52,6 +52,7 @@ # include <utmp.h> #endif #include <stdio.h> +#include <string.h> void login(utp) @@ -78,7 +79,7 @@ tty = ttyslot(); if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) { -#ifdef HAVE_HOST_IN_UTMP || HAVE_HOST_IN_UTMPX +#if defined(HAVE_HOST_IN_UTMP) || defined(HAVE_HOST_IN_UTMPX) (void)lseek(fd, (off_t)(tty * sizeof(struct UTMP_STR)), SEEK_SET); /* * Prevent luser from zero'ing out ut_host. _____________________________________________...
1999 Dec 28
0
Patches to report rsaref build and to call pam_setcred
...-24,6 +24,10 @@ /* Define if your ssl headers are included with #include <openssl/header.h> */ #undef HAVE_OPENSSL +/* Define if you are linking against RSAref. Used only to print the right + * message at run-time. */ +#undef RSAREF + /* Define is utmp.h has a ut_host field */ #undef HAVE_HOST_IN_UTMP diff -uNr config.h.in config.h.in --- config.h.in Sat Dec 25 22:25:22 1999 +++ config.h.in Mon Dec 27 10:51:13 1999 @@ -27,6 +27,10 @@ /* Define if your ssl headers are included with #include <openssl/header.h> */ #undef HAVE_OPENSSL +/* Define if you are linking against RSAref. Used...
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
...; /* seems only to work for /dev/ttyp? style names */ + #endif /* __QNX__ && !__QNXNTO__ */ #endif /* HAVE_GETTTYENT */ if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); + #ifdef HAVE_HOST_IN_UTMP /* * Prevent luser from zero'ing out ut_host. * If the new ut_line is empty but the old one is not *************** *** 761,766 **** --- 766,772 ---- (strncmp(old_ut.ut_name, ut->ut_name, sizeof(ut->ut_name)) == 0)) { (void)memcpy(ut->ut_host, old_ut.ut_host, siz...
1999 Nov 19
1
[solaris 7 patch] resubmit and extended ...
Okay, everything as the first large one I sent today, with a few extra mods. _PATH_MAILDIR is only used in sshd.c, that I can see, so moved the #ifdef from config.h.in to there. several files had __progname defined in the middle of the code, as well as at the top of the code, so cleaned those out. all the fixes for u_int32_t -> uint32_t and u_int16_t -> uint16_t, plus added appropriate
1999 Nov 19
0
[patch2, 1.2pre13] solaris 7 patch for bsd-login.c
...<utmp.h> #include <stdio.h> + #include "config.h" + void login(utp) struct utmp *utp; *************** *** 58,63 **** --- 61,67 ---- tty = ttyslot(); if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) { + #ifdef HAVE_HOST_IN_UTMP (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); /* * Prevent luser from zero'ing out ut_host. *************** *** 70,75 **** --- 74,80 ---- strncmp(old_ut.ut_line, utp->ut_line, UT_LINESIZE) == 0 &&...
2000 Apr 21
0
OpenSSH 1.2.3 on AIX 4.3.3
...#39;t forget to run autoconf. --- bsd-login.c.orig Sat Dec 25 18:21:48 1999 +++ bsd-login.c Thu Apr 20 18:26:41 2000 @@ -65,15 +65,23 @@ struct utmp *utp; #endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ { +#if defined(HAVE_PUTUTLINE) + struct utmp *old_utp; +#else #if defined(HAVE_HOST_IN_UTMP) struct utmp old_ut; #endif + int tty; +#endif /* HAVE_PUTUTLINE */ #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) struct utmpx *old_utx; #endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */ register int fd; - int tty; +#if defined(HAVE_PUTUTLINE) + old_utp = pututli...
2000 Jul 01
0
Problem with cleaning utmp entry
...dr_v6 field in utmpx.h... no checking for ut_exit field in utmp.h... no checking for ut_time field in utmp.h... yes checking for ut_time field in utmpx.h... no checking for ut_tv field in utmpx.h... no PPS. Part of config.h (after doing configure): /* struct utmp and struct utmpx fields */ #define HAVE_HOST_IN_UTMP 1 /* #undef HAVE_HOST_IN_UTMPX */ #define HAVE_ADDR_IN_UTMP 1 /* #undef HAVE_ADDR_IN_UTMPX */ /* #undef HAVE_ADDR_V6_IN_UTMP */ /* #undef HAVE_ADDR_V6_IN_UTMPX */ /* #undef HAVE_SYSLEN_IN_UTMPX */ #define HAVE_PID_IN_UTMP 1 #define HAVE_TYPE_IN_UTMP 1 /* #undef HAVE_TYPE_IN_UTMPX */ /* #undef HAVE_...
2000 Jul 04
0
AW: FreeBSD 3.5-STABLE
...,7 @@ */ /* Use strncpy because we don't necessarily want null termination */ - strncpy(ut->ut_user, li->username, MIN_SIZEOF(ut->ut_user, li->username)); + strncpy(ut->ut_name, li->username, MIN_SIZEOF(ut->ut_name, li->username)); # ifdef HAVE_HOST_IN_UTMP strncpy(ut->ut_host, li->hostname, MIN_SIZEOF(ut->ut_host, li->hostname)); # endif @@ -1006,8 +1006,8 @@ static int wtmp_islogin(struct logininfo *li, struct utmp *ut) { - if (strncmp(li->username, ut->ut_user, - MIN_SIZEOF(li->username, ut->u...
1999 Dec 27
1
More patches to fix NetBSD compiling
..._line)); +#if defined(HAVE_PID_IN_UTMP) u.ut_pid = (pid_t)pid; +#endif /* HAVE_PID_IN_UTMP */ u.ut_time = time(NULL); strncpy(u.ut_name, user, sizeof(u.ut_name)); +#if defined(HAVE_TYPE_IN_UTMP) u.ut_type = (uid == -1)?DEAD_PROCESS:USER_PROCESS; +#endif /* HAVE_TYPE_IN_UTMP */ #if defined(HAVE_HOST_IN_UTMP) strncpy(u.ut_host, host, sizeof(u.ut_host)); #endif
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...ot; #ifdef HAVE_UTIL_H @@ -108,8 +105,10 @@ return 0; } +#ifdef HAVE_TYPE_IN_UTMP if ( wt.ut_type == USER_PROCESS) { - if ( !strncmp(logname, wt.ut_user, 8) ) { +#endif /* HAVE_TYPE_IN_UTMP */ + if ( !strncmp(logname, UTMP_NAME, 8) ) { t = (unsigned long) wt.ut_time; #ifdef HAVE_HOST_IN_UTMP if (bufsize > sizeof(wt.ut_host) + 1) @@ -120,7 +119,9 @@ buf[0] = 0; #endif /* HAVE_HOST_IN_UTMP */ } +#ifdef HAVE_TYPE_IN_UTMP } +#endif /* HAVE_TYPE_IN_UTMP */ if (lseek(fd1, (off_t)(0-2*sizeof(struct utmp)), SEEK_CUR) == -1) break; diff -ruN openssh-1.2.2/next-term...
1999 Dec 21
0
Problem with UTMP recording
...daemon */ /* #undef HAVE_EGD */ /* Define if your ssl headers are included with #include <ssl/header.h> */ /* #undef HAVE_SSL */ /* Define if your ssl headers are included with #include <openssl/header.h> */ #define HAVE_OPENSSL 1 /* Define is utmp.h has a ut_host field */ #define HAVE_HOST_IN_UTMP 1 /* Define is utmpx.h has a ut_host field */ /* #undef HAVE_HOST_IN_UTMPX */ /* Define is libutil has login() function */ /* #undef HAVE_LIBUTIL_LOGIN */ /* Define if libc defines __progname */ #define HAVE___PROGNAME 1 /* Define if you want Kerberos 4 support */ /* #undef KRB4 */ /* Define i...
2005 Sep 19
1
ssh hangs or gives Segmentation fault
...IRIX_PROJECT */ /* #undef WITH_IRIX_AUDIT */ /* #undef WITH_IRIX_JOBS */ /* #undef PRNGD_SOCKET */ /* #undef PRNGD_PORT */ #define ENTROPY_TIMEOUT_MSEC 200 #define SSH_PRIVSEP_USER "sshd" /* #undef MANTYPE */ #define HAVE_OPENSSL 1 /* #undef RSAREF */ #define HAVE_STRUCT_TIMEVAL 1 #define HAVE_HOST_IN_UTMP 1 #define HAVE_HOST_IN_UTMPX 1 #define HAVE_ADDR_IN_UTMP 1 #define HAVE_ADDR_IN_UTMPX 1 #define HAVE_ADDR_V6_IN_UTMP 1 #define HAVE_ADDR_V6_IN_UTMPX 1 /* #undef HAVE_SYSLEN_IN_UTMPX */ #define HAVE_PID_IN_UTMP 1 #define HAVE_TYPE_IN_UTMP 1 #define HAVE_TYPE_IN_UTMPX 1 #define HAVE_TV_IN_UTMP 1 #def...
2006 Apr 11
0
Problem building openssh-4.3p2 under cygwin and windows XP
...define HAVE_GETPEEREID 1 #define HAVE_GETRLIMIT 1 #define HAVE_GETTIMEOFDAY 1 #define HAVE_GETUTENT 1 #define HAVE_GETUTID 1 #define HAVE_GETUTLINE 1 #define HAVE_GETUTXENT 1 #define HAVE_GETUTXID 1 #define HAVE_GETUTXLINE 1 #define HAVE_GLOB 1 #define HAVE_GLOB_H 1 #define HAVE_HEADER_AD 1 #define HAVE_HOST_IN_UTMP 1 #define HAVE_HOST_IN_UTMPX 1 #define HAVE_ID_IN_UTMP 1 #define HAVE_ID_IN_UTMPX 1 #define HAVE_INET_ATON 1 #define HAVE_INET_NTOA 1 #define HAVE_INET_NTOP 1 #define HAVE_INT64_T 1 #define HAVE_INTXX_T 1 #define HAVE_IN_ADDR_T 1 #define HAVE_LASTLOG_H 1 #define HAVE_LIBGEN_H 1 #define HAVE_LIBZ 1...