search for: _path_utmp

Displaying 16 results from an estimated 16 matches for "_path_utmp".

Did you mean: _path_btmp
2000 Aug 01
2
[2.1.1p4] utmp patch for SunOS 4.1.x
...e functions AC_CHECK_FUNCS(gettimeofday time) dnl checks for libutil functions *** defines.h.orig Thu Jun 22 15:23:34 2000 --- defines.h Tue Aug 1 00:33:17 2000 *************** *** 329,346 **** #endif /* FIXME: put default paths back in */ ! #if !defined(UTMP_FILE) && defined(_PATH_UTMP) ! # define UTMP_FILE _PATH_UTMP #endif ! #if !defined(WTMP_FILE) && defined(_PATH_WTMP) ! # define WTMP_FILE _PATH_WTMP #endif /* pick up the user's location for lastlog if given */ ! #if !defined(LASTLOG_FILE) && defined(_PATH_LASTLOG) ! # define LASTLOG_FILE _PATH_LA...
2000 Jul 26
2
[2.1.1p4] utmp related patches plus unresolved bugs description
...;utmp_write_direct: error writing %s: %s", UTMP_FILE, strerror(errno)); --- defines.h.orig-2.1.1p4 Thu Jun 22 18:23:34 2000 +++ defines.h Tue Jul 25 00:43:22 2000 @@ -329,18 +329,33 @@ #endif /* FIXME: put default paths back in */ -#if !defined(UTMP_FILE) && defined(_PATH_UTMP) -# define UTMP_FILE _PATH_UTMP +#ifndef UTMP_FILE +# ifdef _PATH_UTMP +# define UTMP_FILE _PATH_UTMP +# else +# ifdef CONF_UTMP_FILE +# define UTMP_FILE CONF_UTMP_FILE +# endif +# endif #endif -#if !defined(WTMP_FILE) && defined(_PATH_WTMP) -# define WTMP_FILE _PATH_WTM...
1999 Dec 21
0
Problem with UTMP recording
...the */ /* lastlog file detected by autoconf */ #ifndef _PATH_LASTLOG # ifdef LASTLOG_LOCATION # define _PATH_LASTLOG LASTLOG_LOCATION # endif #endif /* Use utmpx if supported */ #ifdef HAVE_UTMPX_H # define UTMP_STR utmpx #else # ifdef HAVE_UTMP_H # define UTMP_STR utmp # endif #endif #ifndef _PATH_UTMP # ifdef UTMPX_FILE # define _PATH_UTMP UTMPX_FILE # else # ifdef UTMP_FILE # define _PATH_UTMP UTMP_FILE # else # define _PATH_UTMP "/var/adm/utmp" # endif # endif #endif #ifndef _PATH_WTMP # ifdef WTMPX_FILE # define _PATH_WTMP WTMPX_FILE # else # ifdef WTMP_FILE # define _P...
1999 Nov 22
3
status of openssh for solaris?
In message <19991122110826.A23851 at wdawson-sun.sbs.siemens.com>, Willard Dawson writes: >I just tried to compile, this time with openssh-1.2pre14, openssl-0.9.4 >and egd-0.6. I get considerably further along, but still not completely >compiled. Here are the last bits: > >gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_PR
2000 May 17
4
Openssh-2.1.0p1 test release
This to announce a test release of 2.1.0p1 before making it widely available. This release includes many fixes to problems reported over the last week. In particular: - spurious error and coredumps caused by the inbuilt entropy gathering - RSAref detection - Compilation fixes for Solaris and others It also contains (completely untested) support for compiling without RSA support. This may be
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 Nov 19
0
[patch2, 1.2pre13] solaris 7 patch for bsd-login.c
...************* *** 48,53 **** --- 49,56 ---- #include <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(o...
1999 Nov 23
0
status of Solaris build
...Well, I finally made it through a complete build of OpenSSH on Solaris 7/x86. I've included a few notes below. Most of them are either simple enough or too complex (i.e. I'm not sure how to do it without breaking other platforms) to generate patches for here. 1) _PATH_DEVNULL, _PATH_UTMP and _PATH_WTMP aren't defined anywhere, since Solaris doesn't appear to have a paths.h include. When the compile bailed, I dropped in a literal string and reran the make. 1a) There are some conflicting declarations of __progname in the application *.c files (sshd.c, ssh-a...
1999 Dec 09
1
bsd-login.c in pre17
...sd-login.c.orig Thu Dec 9 14:52:27 1999 +++ bsd-login.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...
2000 Jan 31
0
New liblogin 0.3alpha
...h-main and into the library. It's tested and running well on Linux, OpenBSD, HPUX10.20 and Solaris. Please check it out, and let me know how you get on. I'm particularly keen to see how it does on other platforms. The main todo right now is to add support for systems that don't define _PATH_UTMP etc. This will probably require file checks, which is a shame because I then lose the ability to cross-compile easily. Oh, well. Ta, -Andre -- Andre Lucas <andre.lucas at dial.pipex.com> http://dspace.dial.pipex.com/andre.lucas/
2000 Apr 21
0
OpenSSH 1.2.3 on AIX 4.3.3
...E_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 = pututline(utp); + endutent(); +#else tty = ttyslot(); if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) { @@ -100,6 +108,7 @@ (void)write(fd, utp, sizeof(struct utmp)); (void)close(fd); } +#endif /* HAVE_PUTUTLINE */ if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) { (void)write(fd, utp, sizeof(struct utmp)); (void)close(fd); --- config.h.i...
2001 Feb 15
0
Configure suggestion
I just downloaded and build 2.3.0p1 on BSD/OS 4.0.1 and 4.1 with no problems. Good job, guys! I did notice that although configure looks for both LASTLOG_FILE and _PATH_LASTLOG, it only looks for UTMP_FILE and WTMP_FILE. BSD/OS doesn't define those, but it does define _PATH_UTMP and _PATH_WTMP (in <utmp.h>, same as _PATH_LASTLOG), so you may want to have configure check for them, too. (It's not a problem since BSD/OS keeps them in one of the standard places that configure looks when the macros aren't defined, but it would be cleaner.) -Larry Jones The surg...
2000 May 12
0
SunOS 4.x port
...n(ttyslot()); +} +#endif #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) void @@ -127,13 +135,16 @@ } else { /* If no tty was found... */ if (tty == -1) { +#ifdef USER_PROCESS /* ... append it to utmp on login */ if (utp->ut_type == USER_PROCESS) { if ((fd = open(_PATH_UTMP, O_WRONLY|O_APPEND, 0)) >= 0) { (void)write(fd, utp, sizeof(struct utmp)); (void)close(fd); } - } else { + } else +#endif + { /* Shouldn't get to here unless somthing happened to utmp */ /* Between login and logout */ log("No tty slot found at logou...
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 23
2
Fixes for Solaris
Attached is a small patch that should fix most of the problems reported. I am adding a recommendation to use GNU make to the INSTALL document. Regards, Damien -- | "Bombay is 250ms from New York in the new world order" - Alan Cox | Damien Miller - http://www.mindrot.org/ | Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work) -------------- next part -------------- Index: