1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00
Michael Adam 1db2c04727 Revert "tdbtool: fix off-by-one error in argument length. (bug #2344)"
This reverts commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115.

This fix is not valid:

1. convert_string() is not only used for key strings but also for data.

2. Some databases use string_tdb_data() i.e. non-null-terminated strings
   as keynames and others (like the one I was using), use
   string_term_tdb_data(), i.e. zero-terminated key strings.

After discussion with Metze, the easiest (and proper way) to
handle this is to specify key names as "keyname\0" for databases
which use string_term_tdb_data().

Sorry for the noise...

Michael
(This used to be commit 17c012c4645f4e9542537c15f80d9b4e74304d11)
2008-07-09 12:57:56 +02:00
..
2008-06-28 10:30:25 +02:00
2008-05-26 05:15:19 +02:00
2007-10-10 14:20:34 -05:00
2008-06-30 21:54:28 +10:00