1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
Author: Giuseppe Iuculano <giuseppe@iuculano.it>
Description: Read logs from /var/log instead of /var/adm
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/README.chklastlog
+++ b/README.chklastlog
@@ -31,8 +31,8 @@
% cc -o chklastlog chklastlog.c
- To run chklastlog you need read permission on the files /var/adm/wtmp
- and /var/adm/lastlogin. Normally these files are world-readable and
+ To run chklastlog you need read permission on the files /var/log/wtmp
+ and /var/log/lastlog. Normally these files are world-readable and
no special privileges are required to run the checker.
The following is an example of the output of chklastlog.
--- a/README.chkwtmp
+++ b/README.chkwtmp
@@ -30,7 +30,7 @@
To create chkwtmp under SunOS 4.x, type:
% cc -o chkwtmp chkwtmp.c
- To run chkwtmp you need read permission on the file /var/adm/wtmp.
+ To run chkwtmp you need read permission on the file /var/log/wtmp.
Normally this file is world-readable and no special privileges are
required to run the checker.
--- a/check_wtmpx.c
+++ b/check_wtmpx.c
@@ -30,8 +30,8 @@
#include <fcntl.h>
#include <unistd.h>
-#define WTMP_FILENAME "/var/adm/wtmp"
-#define WTMPX_FILENAME "/var/adm/wtmpx"
+#define WTMP_FILENAME "/var/log/wtmp"
+#define WTMPX_FILENAME "/var/log/wtmpx"
struct file_utmp_entry
--- a/chklastlog.c
+++ b/chklastlog.c
@@ -65,10 +65,10 @@
#define LASTLOG_FILENAME "/var/log/lastlog"
#endif
#ifndef WTMP_FILENAME
-#define WTMP_FILENAME "/var/adm/wtmp"
+#define WTMP_FILENAME "/var/log/wtmp"
#endif
#ifndef LASTLOG_FILENAME
-#define LASTLOG_FILENAME "/var/adm/lastlog"
+#define LASTLOG_FILENAME "/var/log/lastlog"
#endif
#define TRUE 1L
--- a/chkutmp.c
+++ b/chkutmp.c
@@ -49,7 +49,7 @@
#define MAXLENGTH 256
#define UT_PIDSIZE 12
#if defined(__sun)
-#define UTMP "/var/adm/utmpx"
+#define UTMP "/var/log/utmpx"
#define UT_LINESIZE 12
#define UT_NAMESIZE 8
#define PS_CMD 0
--- a/chkwtmp.c
+++ b/chkwtmp.c
@@ -39,7 +39,7 @@
#define WTMP_FILENAME "/var/log/wtmp"
#else
#ifndef WTMP_FILENAME
-#define WTMP_FILENAME "/var/adm/wtmp"
+#define WTMP_FILENAME "/var/log/wtmp"
#endif
#endif
|