diff --git a/main.c b/main.c index 33b536b..a521cb3 100644 --- a/main.c +++ b/main.c @@ -348,6 +348,7 @@ static int socket_bindlisten(const char *socket_path, goto err; } if (socket_group != NULL) { + errno = 0; struct group *grp = getgrnam(socket_group); /* Do not free */ if (grp == NULL) { if (errno != 0)