From: Ruben Kerkhof Date: Fri, 30 Jun 2017 14:15:25 +0000 (+0200) Subject: email, exec and unixsock plugins: enlarge buffer for getgrnam_r result X-Git-Tag: collectd-5.6.3~20 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=24bdf52decaf93359aab0364fb11420af5cd4a21;p=collectd.git email, exec and unixsock plugins: enlarge buffer for getgrnam_r result Thanks to Jeremie Courreges-Anglas and Daniel Jakots. --- 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;