From 24bdf52decaf93359aab0364fb11420af5cd4a21 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 30 Jun 2017 16:15:25 +0200 Subject: [PATCH] email, exec and unixsock plugins: enlarge buffer for getgrnam_r result Thanks to Jeremie Courreges-Anglas and Daniel Jakots. --- src/email.c | 2 +- src/exec.c | 2 +- src/unixsock.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/email.c b/src/email.c index 1da2633a..b7a5bcad 100644 --- a/src/email.c +++ b/src/email.c @@ -403,7 +403,7 @@ static void *open_connection(void __attribute__((unused)) * arg) { { struct group sg; struct group *grp; - char grbuf[2048]; + char grbuf[4096]; int status; grp = NULL; diff --git a/src/exec.c b/src/exec.c index b728654c..3e480283 100644 --- a/src/exec.c +++ b/src/exec.c @@ -369,7 +369,7 @@ static int fork_child(program_list_t *pl, int *fd_in, int *fd_out, struct passwd *sp_ptr; struct passwd sp; - char nambuf[2048]; + char nambuf[4096]; if (pl->pid != 0) return (-1); diff --git a/src/unixsock.c b/src/unixsock.c index b3fa6a37..020a577a 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -134,7 +134,7 @@ static int us_open_socket(void) { const char *grpname; struct group *g; struct group sg; - char grbuf[2048]; + char grbuf[4096]; grpname = (sock_group != NULL) ? sock_group : COLLECTD_GRP_NAME; g = NULL; -- 2.30.2