- (djm) utmp direct write & SunOS 4 patch from Charles Levert
<charles@comm.polymtl.ca>
This commit is contained in:
parent
d17b8d5aee
commit
36ccb5c4f3
1
CREDITS
1
CREDITS
|
@ -12,6 +12,7 @@ Arkadiusz Miskiewicz <misiek@pld.org.pl> - IPv6 compat fixes
|
||||||
Ben Lindstrom <mouring@pconline.com> - NeXT support
|
Ben Lindstrom <mouring@pconline.com> - NeXT support
|
||||||
Ben Taylor <bent@clark.net> - Solaris debugging and fixes
|
Ben Taylor <bent@clark.net> - Solaris debugging and fixes
|
||||||
Bratislav ILICH <bilic@zepter.ru> - Configure fix
|
Bratislav ILICH <bilic@zepter.ru> - Configure fix
|
||||||
|
Charles Levert <charles@comm.polymtl.ca> - SunOS 4 & bug fixes
|
||||||
Chip Salzenberg <chip@valinux.com> - Assorted patches
|
Chip Salzenberg <chip@valinux.com> - Assorted patches
|
||||||
Chris Adams <cmadams@hiwaay.net> - OSF SIA support
|
Chris Adams <cmadams@hiwaay.net> - OSF SIA support
|
||||||
Chris Saia <csaia@wtower.com> - SuSE packaging
|
Chris Saia <csaia@wtower.com> - SuSE packaging
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
20000809
|
20000809
|
||||||
- (djm) Define AIX hard limits if headers don't. Report from
|
- (djm) Define AIX hard limits if headers don't. Report from
|
||||||
Bill Painter <william.t.painter@lmco.com>
|
Bill Painter <william.t.painter@lmco.com>
|
||||||
|
- (djm) utmp direct write & SunOS 4 patch from Charles Levert
|
||||||
|
<charles@comm.polymtl.ca>
|
||||||
|
|
||||||
20000808
|
20000808
|
||||||
- (djm) Cleanup Redhat RPMs. Generate keys at runtime rather than install
|
- (djm) Cleanup Redhat RPMs. Generate keys at runtime rather than install
|
||||||
|
|
|
@ -137,6 +137,11 @@ case "$host" in
|
||||||
*-*-sunos4*)
|
*-*-sunos4*)
|
||||||
CFLAGS="$CFLAGS -DSUNOS4"
|
CFLAGS="$CFLAGS -DSUNOS4"
|
||||||
AC_CHECK_FUNCS(getpwanam)
|
AC_CHECK_FUNCS(getpwanam)
|
||||||
|
conf_utmp_location=/etc/utmp
|
||||||
|
conf_wtmp_location=/var/adm/wtmp
|
||||||
|
conf_lastlog_location=/var/adm/lastlog
|
||||||
|
MANTYPE='$(CATMAN)'
|
||||||
|
mansubdir=cat
|
||||||
;;
|
;;
|
||||||
*-sni-sysv*)
|
*-sni-sysv*)
|
||||||
CFLAGS="$CFLAGS -I/usr/local/include"
|
CFLAGS="$CFLAGS -I/usr/local/include"
|
||||||
|
|
33
defines.h
33
defines.h
|
@ -329,18 +329,33 @@ typedef int mode_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* FIXME: put default paths back in */
|
/* FIXME: put default paths back in */
|
||||||
#if !defined(UTMP_FILE) && defined(_PATH_UTMP)
|
#ifndef UTMP_FILE
|
||||||
# define UTMP_FILE _PATH_UTMP
|
# ifdef _PATH_UTMP
|
||||||
|
# define UTMP_FILE _PATH_UTMP
|
||||||
|
# else
|
||||||
|
# ifdef CONF_UTMP_FILE
|
||||||
|
# define UTMP_FILE CONF_UTMP_FILE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(WTMP_FILE) && defined(_PATH_WTMP)
|
#ifndef WTMP_FILE
|
||||||
# define WTMP_FILE _PATH_WTMP
|
# ifdef _PATH_WTMP
|
||||||
|
# define WTMP_FILE _PATH_WTMP
|
||||||
|
# else
|
||||||
|
# ifdef CONF_WTMP_FILE
|
||||||
|
# define WTMP_FILE CONF_WTMP_FILE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
/* pick up the user's location for lastlog if given */
|
/* pick up the user's location for lastlog if given */
|
||||||
#if !defined(LASTLOG_FILE) && defined(_PATH_LASTLOG)
|
#ifndef LASTLOG_FILE
|
||||||
# define LASTLOG_FILE _PATH_LASTLOG
|
# ifdef _PATH_LASTLOG
|
||||||
#endif
|
# define LASTLOG_FILE _PATH_LASTLOG
|
||||||
#if !defined(LASTLOG_FILE) && defined(CONF_LASTLOG_FILE)
|
# else
|
||||||
# define LASTLOG_FILE CONF_LASTLOG_FILE
|
# ifdef CONF_LASTLOG_FILE
|
||||||
|
# define LASTLOG_FILE CONF_LASTLOG_FILE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "loginrec.h"
|
#include "loginrec.h"
|
||||||
|
|
||||||
RCSID("$Id: loginrec.c,v 1.17 2000/07/11 02:15:54 djm Exp $");
|
RCSID("$Id: loginrec.c,v 1.18 2000/08/09 06:34:28 djm Exp $");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** prototypes for helper functions in this file
|
** prototypes for helper functions in this file
|
||||||
|
@ -740,7 +740,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
|
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
|
||||||
if (atomicio(write, fd, ut, sizeof(ut)) != sizeof(ut))
|
if (atomicio(write, fd, ut, sizeof(*ut)) != sizeof(*ut))
|
||||||
log("utmp_write_direct: error writing %s: %s",
|
log("utmp_write_direct: error writing %s: %s",
|
||||||
UTMP_FILE, strerror(errno));
|
UTMP_FILE, strerror(errno));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue