From: Yu Watanabe Date: Sun, 8 Jun 2025 20:11:01 +0000 (+0900) Subject: utmp-wtmp: replace _PATH_WTMPX -> WTMPX_FILE X-Git-Tag: v258-rc1~352^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e11f01b78a6cb9f826d5fa2aafe58d55eb3da511;p=thirdparty%2Fsystemd.git utmp-wtmp: replace _PATH_WTMPX -> WTMPX_FILE _PATH_WTMPX is a kind of internal definition in glibc, and WTMPX_FILE should be an exposed definition. Both are same, let's use WTMPX_FILE. Note, for utmp, we use UTMPX_FILE, rather than _PATH_UTMPX. Let's use consistent macros. --- diff --git a/src/shared/utmp-wtmp.c b/src/shared/utmp-wtmp.c index b0581162ab7..8a69e9692ba 100644 --- a/src/shared/utmp-wtmp.c +++ b/src/shared/utmp-wtmp.c @@ -104,7 +104,7 @@ static int write_entry_wtmp(const struct utmpx *store) { * simply appended to the end; i.e. basically a log. */ errno = 0; - updwtmpx(_PATH_WTMPX, store); + updwtmpx(WTMPX_FILE, store); if (errno == ENOENT) { /* If utmp/wtmp have been disabled, that's a good thing, hence ignore the error. */ log_debug_errno(errno, "Not writing wtmp: %m");