tdbtool: fix off-by-one error in argument length. (bug #2344)
authorMichael Adam <obnox@samba.org>
Tue, 8 Jul 2008 14:13:24 +0000 (16:13 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 8 Jul 2008 14:13:24 +0000 (16:13 +0200)
commitdd781951fb9acc556f1bd6760b72151a7c359a9f
treebbf22b6906104f6cccbd08583d34d6548a75ff1e
parenta56de3ce7051deed5f36b03186bccac6ea0d2ce4
tdbtool: fix off-by-one error in argument length. (bug #2344)

This prevented all commands operating on keys (all non-traverse commands)
in tdbtool to fail with a "fetch failed" or "delete failed" message.

It seems that it fixes bug #2344 ...

Apparently this bug was introduced with 94e53472666ed in 2005.
Either nobody is using tdbtool or else tdb_find() has become
more strict about the key legth in the meantime. :-)

Michael
source/tdb/tools/tdbtool.c