[hackers] [ubase] uptime.c: Use the UTMP_PATH from config.def.h || Ypnose
commit 52a0874624fcd53f76ef0d2caa82c0463ab93303
Author: Ypnose <linuxien_AT_legtux.org>
AuthorDate: Thu Jul 9 22:25:33 2015 +0200
Commit: sin <sin_AT_2f30.org>
CommitDate: Thu Sep 3 19:57:21 2015 +0100
uptime.c: Use the UTMP_PATH from config.def.h
diff --git a/uptime.c b/uptime.c
index 015dcad..e0dd6fa 100644
--- a/uptime.c
+++ b/uptime.c
_AT_@ -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" : "");
}
Received on Thu Sep 03 2015 - 20:57:26 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 03 2015 - 21:00:13 CEST