]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix kadm5.acl error reporting 667/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 19 Jun 2017 15:30:38 +0000 (11:30 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 19 Jun 2017 19:08:04 +0000 (15:08 -0400)
commit3efb19294012ad38ac3a95d407e739313838c68a
tree9208c80148241e7e48e67dcaea9bee40e243c1fa
parent462cffcd00c12e6c96d4c045572c0e76a2686538
Fix kadm5.acl error reporting

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
src/lib/kadm5/srv/server_acl.c