Fix error reporting prefix for kadmin list
Pass the function name into foreach_principal instead of the static "get" string, so the correct function is reported in errors in kadmin list. Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
890c797f68
commit
ce438f343c
@@ -495,7 +495,7 @@ getit(struct get_options *opt, const char *name, int argc, char **argv)
|
||||
}
|
||||
|
||||
for(i = 0; i < argc; i++)
|
||||
ret = foreach_principal(argv[i], do_get_entry, "get", &data);
|
||||
ret = foreach_principal(argv[i], do_get_entry, name, &data);
|
||||
|
||||
if(data.table != NULL) {
|
||||
rtbl_format(data.table, stdout);
|
||||
|
Reference in New Issue
Block a user