File: 11_logpath.patch

package info (click to toggle)
chkrootkit 0.58b-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,796 kB
  • sloc: sh: 187,095; ansic: 3,779; makefile: 103
file content (106 lines) | stat: -rw-r--r-- 3,244 bytes parent folder | download
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
From: Giuseppe Iuculano <giuseppe@iuculano.it>
Date: Sun, 9 Jul 2017 18:42:55 +0200
Subject: Debian-specific: Read logs from /var/log instead of /var/adm

 Unclear if this should be upstreamed, some of these paths may be Debian-specific
 Dates from 2017 or earlier.
 Affects various files

Last-Updated: 2021-10-10
Forwarded: yes
(Forwarded by email: 21 Dec 2024)
---
 README.chklastlog | 4 ++--
 README.chkwtmp    | 2 +-
 check_wtmpx.c     | 4 ++--
 chklastlog.c      | 4 ++--
 chkutmp.c         | 2 +-
 chkwtmp.c         | 2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/README.chklastlog b/README.chklastlog
index 1d376ce..5deeabb 100644
--- a/README.chklastlog
+++ b/README.chklastlog
@@ -31,8 +31,8 @@ chklastlog - check lastlog-file for deleted information
    % 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.
diff --git a/README.chkwtmp b/README.chkwtmp
index 8c36fe6..13e39f9 100644
--- a/README.chkwtmp
+++ b/README.chkwtmp
@@ -30,7 +30,7 @@ chkwtmp - check wtmp-file for overwritten information
    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. 
 
diff --git a/check_wtmpx.c b/check_wtmpx.c
index 56afdd0..cb1d67f 100644
--- a/check_wtmpx.c
+++ b/check_wtmpx.c
@@ -30,8 +30,8 @@ int main () { return 0; }
 #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
diff --git a/chklastlog.c b/chklastlog.c
index ade198d..c895ff3 100644
--- a/chklastlog.c
+++ b/chklastlog.c
@@ -65,10 +65,10 @@ int main () { return 0; }
 #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
diff --git a/chkutmp.c b/chkutmp.c
index 3487903..5c81a72 100644
--- a/chkutmp.c
+++ b/chkutmp.c
@@ -49,7 +49,7 @@ int main () { return 0; }
 #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
diff --git a/chkwtmp.c b/chkwtmp.c
index 29d35f8..c207721 100644
--- a/chkwtmp.c
+++ b/chkwtmp.c
@@ -38,7 +38,7 @@ int main () { return 0; }
 #define WTMP_FILENAME "/var/log/wtmp"
 #else
 #ifndef WTMP_FILENAME
-#define WTMP_FILENAME "/var/adm/wtmp"
+#define WTMP_FILENAME "/var/log/wtmp"
 #endif
 #endif