libpwdgrp: getgrXXX: empty string is not a member name, do not store it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
402451aa19
commit
12fc869560
@ -297,7 +297,10 @@ static void *convert_to_struct(struct passdb *db,
|
||||
|
||||
((struct group *)result)->gr_mem = members;
|
||||
while (--i >= 0) {
|
||||
*members++ = buffer;
|
||||
if (buffer[0]) {
|
||||
*members++ = buffer;
|
||||
// bb_error_msg("member[]='%s'", buffer);
|
||||
}
|
||||
buffer += strlen(buffer) + 1;
|
||||
}
|
||||
*members = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user