diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-05-05 15:37:18 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-05-05 15:37:18 +0930 |
commit | 91e4a1760dee22e9a40ca52f1e5a1b549d9e066d (patch) | |
tree | 879c390a4be016332c981a4392eaa2a5175a3117 /source3/smbd/message.c | |
parent | a9e008ee36c8fd9ca79b3bdfdc78111939c3e539 (diff) | |
download | samba-91e4a1760dee22e9a40ca52f1e5a1b549d9e066d.tar.gz samba-91e4a1760dee22e9a40ca52f1e5a1b549d9e066d.tar.bz2 samba-91e4a1760dee22e9a40ca52f1e5a1b549d9e066d.zip |
tdb: fix short write logic in tdb_new_database
Commit 207a213c/24fed55d purported to fix the problem of signals during
tdb_new_database (which could cause a spurious short write, hence a failure).
However, the code is wrong: newdb+written is not correct.
Fix this by introducing a general tdb_write_all() and using it here and in
the tracing code.
Cc: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/smbd/message.c')
0 files changed, 0 insertions, 0 deletions