[git commit] libpwdgrp: getgrXXX: empty string is not a member name, do not store it
Denys Vlasenko
vda.linux at googlemail.com
Sat Jan 3 20:16:18 UTC 2015
commit: http://git.busybox.net/busybox/commit/?id=12fc86956057ac3e679dd276ba3897260b95157e
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libpwdgrp/pwd_grp.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c
index 2392e7d..65fd526 100644
--- a/libpwdgrp/pwd_grp.c
+++ b/libpwdgrp/pwd_grp.c
@@ -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;
More information about the busybox-cvs
mailing list