diff options
author | Ralph Boehme <slow@samba.org> | 2017-07-04 09:38:07 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-07-04 13:11:16 +0200 |
commit | ee93e652ba537bffecd7adb02fed6794f647b473 (patch) | |
tree | 4fa6b7b3793c9324522bad3e52cdf5a9ca876c6f | |
parent | 332b179143f4cccda3f6b4c84abb3c52fac8589c (diff) | |
download | samba-ee93e652ba537bffecd7adb02fed6794f647b473.tar.gz |
net: fix net cache samlogon list output
Don't print the table header for every entry.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12875
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/utils/net_cache.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/utils/net_cache.c b/source3/utils/net_cache.c index d3ba2edfd89..f43eb0e88c6 100644 --- a/source3/utils/net_cache.c +++ b/source3/utils/net_cache.c @@ -360,10 +360,6 @@ static int netsamlog_cache_for_all_cb(const char *sid_str, return -1; } - d_printf("%-50s %-40s When cached\n", "SID", "Name"); - d_printf("------------------------------------------------------------" - "------------------------------------------------------------" - "----\n"); d_printf("%-50s %-40s %s\n", sid_str, name, @@ -378,6 +374,11 @@ static int net_cache_samlogon_list(struct net_context *c, { int ret; + d_printf("%-50s %-40s When cached\n", "SID", "Name"); + d_printf("------------------------------------------------------------" + "------------------------------------------------------------" + "----\n"); + ret = netsamlog_cache_for_all(netsamlog_cache_for_all_cb, c); if (ret == -1) { return -1; |