In kadm5int_acl_get_line(), increment *lnp after skipping a blank or
comment line, so that kadm5int_acl_load_acl_file() correctly reports
the line number if it fails to parse a line.
In acl_syn_err_msg, use %.10s to limit the amount of the line included
in the error message, not %10s to left-pad it with spaces if it is
shorter than ten characters.
ticket: 8588 (new)
target_version: 1.15-next
target_version: 1.14-next
tags: pullup
static const char *acl_op_bad_msg = N_("Unrecognized ACL operation '%c' in "
"%s");
static const char *acl_syn_err_msg = N_("%s: syntax error at line %d "
- "<%10s...>");
+ "<%.10s...>");
static const char *acl_cantopen_msg = N_("%s while opening ACL file %s");
/*
static int line_incr = 0;
static char acl_buf[BUFSIZ];
- *lnp += line_incr;
- line_incr = 0;
for (domore = 1; domore && !feof(fp); ) {
+ *lnp += line_incr;
+ line_incr = 0;
/* Copy in the line, with continuations */
for (i = 0; ((i < BUFSIZ) && !feof(fp)); i++) {
int byte;