logwtmp.c: Include paths.h if present, and use _PATH_WTMP to determine
authorTheodore Tso <tytso@mit.edu>
Wed, 27 May 1998 19:34:36 +0000 (19:34 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 27 May 1998 19:34:36 +0000 (19:34 +0000)
WTMPFILE.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10594 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftpd/ChangeLog
src/appl/gssftp/ftpd/logwtmp.c

index 92019dcfe7a4990a961e79f66fada40fec4a9928..a9e0c0ab4d50f9a087ec99f7bd1535507b5fe841 100644 (file)
@@ -1,3 +1,8 @@
+1998-05-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * ftpcmd.y (cmd): Fix Y2K problem in the MDTM command.
index 846819a8f526abec7ac99a1e69a057e55a2098f8..06b97b9868c499885f756c7fac996ed0e647e68d 100644 (file)
@@ -44,9 +44,17 @@ static char sccsid[] = "@(#)logwtmp.c        5.7 (Berkeley) 2/25/91";
 #include <unistd.h>
 #include <string.h>
 
+#ifdef HAVE_PATHS_H
+#include <paths.h>
+#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"