summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-09-05 17:23:51 +0000
committerJeremy Allison <jra@samba.org>2001-09-05 17:23:51 +0000
commit00973eb50ea846b31266ab6ad62759c22bef2bbb (patch)
treefc017e40854fd4a32a7fe6c6e06521e75e93eeec
parentd53d5beeb29c0024556aae2f66f1d5bfe63960e5 (diff)
downloadsamba-00973eb50ea846b31266ab6ad62759c22bef2bbb.tar.gz
samba-00973eb50ea846b31266ab6ad62759c22bef2bbb.tar.bz2
samba-00973eb50ea846b31266ab6ad62759c22bef2bbb.zip
When sending a message via a tdb, it must be open read/write.
Jeremy. (This used to be commit f35887c7d40ced750596b87bf37f7aae1df68c7a)
-rw-r--r--source3/utils/smbcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 112c707412..377f7a148b 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -133,7 +133,7 @@ static BOOL send_message(char *dest, int msg_type, void *buf, int len, BOOL dupl
TDB_CONTEXT *tdb;
BOOL ret;
- tdb = tdb_open_log(lock_path("connections.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDONLY, 0);
+ tdb = tdb_open_log(lock_path("connections.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDWR, 0);
if (!tdb) {
fprintf(stderr,"Failed to open connections database in send_message.\n");
return False;