diff options
author | Tito Ragusa <farmatito@tiscali.it> | 2015-01-06 01:22:36 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-01-06 01:22:36 +0100 |
commit | e5cae08f1232e66daca8f47f0f257a83a0cca9fa (patch) | |
tree | 3384ee0d3b80d6c7656755a017dd231423733578 /libpwdgrp/pwd_grp.c | |
parent | e76957708b6a158fd25f7298a4bf2cc5583a974a (diff) |
libpwdgrp: line counting in error meesages is broken, remove it
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libpwdgrp/pwd_grp.c')
-rw-r--r-- | libpwdgrp/pwd_grp.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |