Introduction
Introduction Statistics Contact Development Disclaimer Help
uptime.c: Use the UTMP_PATH from config.def.h - ubase - suckless linux base uti…
git clone git://git.suckless.org/ubase
Log
Files
Refs
README
LICENSE
---
commit 52a0874624fcd53f76ef0d2caa82c0463ab93303
parent 71da5628d18492f48369d0d00cd86551ec7798d0
Author: Ypnose <[email protected]>
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(-)
---
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" : "");
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.