summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2011-08-12 12:30:17 +0200
committerKarel Zak2011-10-26 23:17:15 +0200
commit5d1a454ac93e69d7ae805f99e6c65c6167776760 (patch)
tree60a6f17acb82af1c123ce0ff97228fe702c8788f
parentlogin: remove dead code and comments (diff)
downloadkernel-qcow2-util-linux-5d1a454ac93e69d7ae805f99e6c65c6167776760.tar.gz
kernel-qcow2-util-linux-5d1a454ac93e69d7ae805f99e6c65c6167776760.tar.xz
kernel-qcow2-util-linux-5d1a454ac93e69d7ae805f99e6c65c6167776760.zip
login: move _PATH_BTMP to pathnames.h
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--include/pathnames.h4
-rw-r--r--login-utils/login.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index d7d2a14c0..025e4afa9 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -135,5 +135,9 @@
# define _PATH_RTC_DEV "/dev/rtc"
#endif
+#ifndef _PATH_BTMP
+#define _PATH_BTMP "/var/log/btmp"
+#endif
+
#endif /* PATHNAMES_H */
diff --git a/login-utils/login.c b/login-utils/login.c
index 118bda98d..bcac52de6 100644
--- a/login-utils/login.c
+++ b/login-utils/login.c
@@ -206,7 +206,6 @@ consoletty(int fd) {
* Must be called only with username the name of an actual user.
* The most common login failure is to give password instead of username.
*/
-#define _PATH_BTMP "/var/log/btmp"
static void
logbtmp(const char *line, const char *username, const char *hostname) {
struct utmp ut;