mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
net: "net g_lock locks" needs to print binary keys
In 2017 g_lock changed to take TDB_DATA as a key Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
abae5889d9
commit
50a1e995cb
@ -162,11 +162,7 @@ done:
|
||||
|
||||
static int net_g_lock_locks_fn(TDB_DATA key, void *private_data)
|
||||
{
|
||||
if ((key.dsize == 0) || (key.dptr[key.dsize-1] != 0)) {
|
||||
DEBUG(1, ("invalid key in g_lock.tdb, ignoring\n"));
|
||||
return 0;
|
||||
}
|
||||
d_printf("%s\n", (const char *)key.dptr);
|
||||
dump_data_file(key.dptr, key.dsize, true, stdout);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user