projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd3c084
)
forgot to give entropy() some candy too
author
Ali H. Fardan
<raiz@firemail.cc>
Wed, 31 Aug 2016 03:10:53 +0000
(06:10 +0300)
committer
Ali H. Fardan
<raiz@firemail.cc>
Wed, 31 Aug 2016 03:10:53 +0000
(06:10 +0300)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 5246bc0b16c8eda71159c2c8fb1d554fa1608e1a..f070e1d7d27c2a95fc91bd2a65e968fe71e6ba81 100644
(file)
--- 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);
}