projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
email, exec and unixsock plugins: fix error handling
[collectd.git]
/
src
/
unixsock.c
diff --git
a/src/unixsock.c
b/src/unixsock.c
index
aa3451e
..
b3fa6a3
100644
(file)
--- a/
src/unixsock.c
+++ b/
src/unixsock.c
@@
-143,7
+143,7
@@
static int us_open_socket(void) {
if (status != 0) {
char errbuf[1024];
WARNING("unixsock plugin: getgrnam_r (%s) failed: %s", grpname,
- sstrerror(
errno
, errbuf, sizeof(errbuf)));
+ sstrerror(
status
, errbuf, sizeof(errbuf)));
break;
}
if (g == NULL) {