summaryrefslogtreecommitdiff
path: root/ext/posix/posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r--ext/posix/posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c
index 4a5198956e..8946634235 100644
--- a/ext/posix/posix.c
+++ b/ext/posix/posix.c
@@ -1361,6 +1361,8 @@ PHP_FUNCTION(posix_initgroups)
RETURN_FALSE;
}
+ if(strlen(name)==0) RETURN_FALSE;
+
RETURN_BOOL(!initgroups((const char *)name, basegid));
}
/* }}} */