From: Tito Ragusa Date: Tue, 6 Jan 2015 00:22:36 +0000 (+0100) Subject: libpwdgrp: line counting in error meesages is broken, remove it X-Git-Tag: 1_24_0~230 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e5cae08f1232e66daca8f47f0f257a83a0cca9fa;p=oweals%2Fbusybox.git libpwdgrp: line counting in error meesages is broken, remove it Signed-off-by: Tito Ragusa Signed-off-by: Denys Vlasenko --- diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index 524acfeab..90647e9d3 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c @@ -189,17 +189,15 @@ static int tokenize(char *buffer, int ch) static char *parse_common(FILE *fp, struct passdb *db, const char *key, int field_pos) { - int count = 0; char *buf; while ((buf = xmalloc_fgetline(fp)) != NULL) { - count++; /* Skip empty lines, comment lines */ if (buf[0] == '\0' || buf[0] == '#') goto free_and_next; if (tokenize(buf, ':') != db->numfields) { /* number of fields is wrong */ - bb_error_msg("bad record at %s:%u", db->filename, count); + bb_error_msg("%s: bad record", db->filename); goto free_and_next; }