From 781e42d66c120183e4dea1058dc539bdc4c53651 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 26 May 2006 14:41:40 +0000 Subject: - introduce and use bb_path_wtmp_file for portability (saves 11 Bytes). - fix last.c to also look at the double-underscore UT_ defines. --- loginutils/getty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'loginutils/getty.c') diff --git a/loginutils/getty.c b/loginutils/getty.c index 24d579f..43a82df 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -496,9 +496,9 @@ static void update_utmp(char *line) endutent(); #ifdef CONFIG_FEATURE_WTMP - if (access(_PATH_WTMP, R_OK|W_OK) == -1) - close(creat(_PATH_WTMP, 0664)); - updwtmp(_PATH_WTMP, &ut); + if (access(bb_path_wtmp_file, R_OK|W_OK) == -1) + close(creat(bb_path_wtmp_file, 0664)); + updwtmp(bb_path_wtmp_file, &ut); #endif } -- cgit v1.1