summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-04-08 14:49:43 +0200
committerMichael Adam <obnox@samba.org>2011-04-08 17:29:31 +0200
commit58a0c8a9e0daa5e4071b756fb8f410a398ae8b99 (patch)
tree4086eaad302f06636db0b87f237c1c302a1836fa /source3
parent6db4fc15df8eaba8ad23ef9c528fa2df1759f8c0 (diff)
downloadsamba-58a0c8a9e0daa5e4071b756fb8f410a398ae8b99.tar.gz
samba-58a0c8a9e0daa5e4071b756fb8f410a398ae8b99.tar.bz2
samba-58a0c8a9e0daa5e4071b756fb8f410a398ae8b99.zip
s3:net idmap check: fix output of an invalid record
Only print the value number for hwm, version and seqnum keys. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Apr 8 17:29:31 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_idmap_check.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/utils/net_idmap_check.c b/source3/utils/net_idmap_check.c
index 7140f4c2a9..88725e18a6 100644
--- a/source3/utils/net_idmap_check.c
+++ b/source3/utils/net_idmap_check.c
@@ -225,8 +225,13 @@ static char get_action(struct check_action* a, struct record* r, TDB_DATA* v) {
d_printf("%s: %s ", a->name, print_data(r, r->key));
if (is_map(r)) {
d_printf("-> %s\n", print_data(r, r->val));
- } else {
+ } else if (r->key_type == DT_HWM ||
+ r->key_type == DT_VER ||
+ r->key_type == DT_SEQ)
+ {
d_printf(": %ld\n", r->id);
+ } else {
+ d_printf("\n");
}
} else {
d_printf(a->fmt, a->name,