]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: move _PATH_BTMP to pathnames.h
authorKarel Zak <kzak@redhat.com>
Fri, 12 Aug 2011 10:30:17 +0000 (12:30 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Oct 2011 21:17:15 +0000 (23:17 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/pathnames.h
login-utils/login.c

index d7d2a14c06e97d99791c186250de8c3f6bed466d..025e4afa91df8cb60f3ddf0da5a709a51afdf37d 100644 (file)
 # define _PATH_RTC_DEV         "/dev/rtc"
 #endif
 
+#ifndef _PATH_BTMP
+#define _PATH_BTMP             "/var/log/btmp"
+#endif
+
 #endif /* PATHNAMES_H */
 
index 118bda98dacf552dbb33191f0d1e2bc38094850c..bcac52de69207bb8565974794d814f2821bab4fc 100644 (file)
@@ -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;