tdbtool: fix off-by-one error in argument length. (bug #2344)
authorMichael Adam <obnox@samba.org>
Tue, 8 Jul 2008 13:33:36 +0000 (15:33 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 8 Jul 2008 14:05:03 +0000 (16:05 +0200)
commit6df9df2f340040eda81c241ce1f03207572d23e5
tree150c9842732cabd26fcce0446b1d8d8903ebe19c
parentc1baf310830e7ebff4fe0835812122ec146412da
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
(cherry picked from commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115)
source/lib/tdb/tools/tdbtool.c