]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-daemon: Hex encode key before logging
authorMartin Schwenke <mschwenke@ddn.com>
Sun, 8 Feb 2026 23:03:04 +0000 (10:03 +1100)
committerVolker Lendecke <vl@samba.org>
Mon, 9 Feb 2026 12:21:08 +0000 (12:21 +0000)
commit38b2428d3765a468004265b5732cbcadfe503bb9
tree85f4d6d2f8dcabf20ac5a5f827b07c0fbe4eb7f5
parent59ef918c03f78f8ef2a19c504fd40f7e7368e905
ctdb-daemon: Hex encode key before logging

This currently causes binary data to be logged.

Instead, conditionally hex encode the key in a similar style to the
way it is done in dbwrap_ctdb.c:fetch_locked_internal().  In this
case, the key is truncated if the debug level is less than 10.`

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Feb  9 12:21:08 UTC 2026 on atb-devel-224
ctdb/server/ctdb_vacuum.c