From: Karel Zak Date: Fri, 12 Aug 2011 10:30:17 +0000 (+0200) Subject: login: move _PATH_BTMP to pathnames.h X-Git-Tag: v2.21-rc1~322 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d1a454ac93e69d7ae805f99e6c65c6167776760;p=thirdparty%2Futil-linux.git login: move _PATH_BTMP to pathnames.h Signed-off-by: Karel Zak --- diff --git a/include/pathnames.h b/include/pathnames.h index d7d2a14c06..025e4afa91 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 118bda98da..bcac52de69 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;