From: Theodore Tso Date: Wed, 27 May 1998 19:34:36 +0000 (+0000) Subject: logwtmp.c: Include paths.h if present, and use _PATH_WTMP to determine X-Git-Tag: krb5-1.1-beta1~699 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=25ecef1f25a27b75624c66ab001335f107aaaeb5;p=krb5.git logwtmp.c: Include paths.h if present, and use _PATH_WTMP to determine WTMPFILE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10594 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 92019dcfe..a9e0c0ab4 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,8 @@ +1998-05-26 Theodore Ts'o + + * logwtmp.c: Include paths.h if present, and use _PATH_WTMP to + determine WTMPFILE. + Fri May 8 18:06:52 1998 Theodore Y. Ts'o * ftpcmd.y (cmd): Fix Y2K problem in the MDTM command. diff --git a/src/appl/gssftp/ftpd/logwtmp.c b/src/appl/gssftp/ftpd/logwtmp.c index 846819a8f..06b97b986 100644 --- a/src/appl/gssftp/ftpd/logwtmp.c +++ b/src/appl/gssftp/ftpd/logwtmp.c @@ -44,9 +44,17 @@ static char sccsid[] = "@(#)logwtmp.c 5.7 (Berkeley) 2/25/91"; #include #include +#ifdef HAVE_PATHS_H +#include +#endif + #ifdef WTMP_FILE #define WTMPFILE WTMP_FILE -#endif +#else +#ifdef _PATH_WTMP +#define WTMPFILE _PATH_WTMP +#endif /* _PATH_WTMP */ +#endif /* WTMP_FILE */ #ifndef WTMPFILE #define WTMPFILE "/usr/adm/wtmp"