commit 52a0874624fcd53f76ef0d2caa82c0463ab93303
parent 71da5628d18492f48369d0d00cd86551ec7798d0
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:
1 file changed, 1 insertion(+), 1 deletion(-)
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" : "");
}