uptime.c: Use the UTMP_PATH from config.def.h - ubase - suckless linux base utils
(HTM) git clone git://git.suckless.org/ubase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 52a0874624fcd53f76ef0d2caa82c0463ab93303
(DIR) parent 71da5628d18492f48369d0d00cd86551ec7798d0
(HTM) Author: Ypnose <linuxien@legtux.org>
Date: Thu, 9 Jul 2015 22:25:33 +0200
uptime.c: Use the UTMP_PATH from config.def.h
Diffstat:
M uptime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/uptime.c b/uptime.c
@@ -59,7 +59,7 @@ main(int argc, char *argv[])
nusers++;
}
if (ferror(ufp))
- eprintf("/var/run/utmp: read error:");
+ eprintf("%s: read error:", UTMP_PATH);
fclose(ufp);
printf(" %d user%s, ", nusers, nusers > 1 ? "s" : "");
}