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
/
email.c
diff --git
a/src/email.c
b/src/email.c
index
849b7f9
..
1da2633
100644
(file)
--- a/
src/email.c
+++ b/
src/email.c
@@
-411,7
+411,7
@@
static void *open_connection(void __attribute__((unused)) * arg) {
if (status != 0) {
char errbuf[1024];
log_warn("getgrnam_r (%s) failed: %s", group,
- sstrerror(
errno
, errbuf, sizeof(errbuf)));
+ sstrerror(
status
, errbuf, sizeof(errbuf)));
} else if (grp == NULL) {
log_warn("No such group: `%s'", group);
} else {