slstatus

My fork of https://tools.suckless.org/slstatus/
git clone https://git.inz.fi/slstatus
Log | Files | Refs | README | LICENSE

commit 5e4dc85bb9bf821d87bcf8a13e0f0843fd68bfe1
parent cd3c084957483c4192edf2e8feb4c759668a1055
Author: Ali H. Fardan <raiz@firemail.cc>
Date:   Wed, 31 Aug 2016 06:10:53 +0300

forgot to give entropy() some candy too

Diffstat:
Mslstatus.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/slstatus.c b/slstatus.c @@ -252,7 +252,8 @@ entropy(void) FILE *fp = fopen("/proc/sys/kernel/random/entropy_avail", "r"); if (fp == NULL) { - fprintf(stderr, "Could not open entropy file.\n"); + fprintf(stderr, "Could not open entropy file: %s\n", + strerror(errno)); return smprintf(UNKNOWN_STR); }