summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-05 15:36:26 -0600
committerStefan Metzmacher <metze@samba.org>2008-01-05 09:42:01 -0600
commita5301d220439e096c996629146128423ee47a868 (patch)
tree62f78f3706f0b980ba2bb86dcb34298a3c76d765 /source4/lib
parentd0e9c92e57915920a77496e828c9da6cd87f0a8d (diff)
downloadsamba-a5301d220439e096c996629146128423ee47a868.tar.gz
samba-a5301d220439e096c996629146128423ee47a868.tar.bz2
samba-a5301d220439e096c996629146128423ee47a868.zip
r26668: tdb/python: Fix default value of open_flags for tdb.
(This used to be commit aa438a2febc6562aa6f71505936d0872a6dcd17d)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/tdb/tdb.i2
-rw-r--r--source4/lib/tdb/tdb_wrap.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/tdb/tdb.i b/source4/lib/tdb/tdb.i
index 1b4742a477..5e928941de 100644
--- a/source4/lib/tdb/tdb.i
+++ b/source4/lib/tdb/tdb.i
@@ -122,7 +122,7 @@ enum TDB_ERROR {
$1 = TDB_DEFAULT;
}
-%typemap(default,noblock=1) int open_flags {
+%typemap(default,noblock=1) int flags {
$1 = O_RDWR;
}
diff --git a/source4/lib/tdb/tdb_wrap.c b/source4/lib/tdb/tdb_wrap.c
index e8c8c89f94..6a5b7feffc 100644
--- a/source4/lib/tdb/tdb_wrap.c
+++ b/source4/lib/tdb/tdb_wrap.c
@@ -2823,6 +2823,7 @@ SWIGINTERN PyObject *_wrap_new_Tdb(PyObject *SWIGUNUSEDPARM(self), PyObject *arg
arg2 = 0;
arg3 = TDB_DEFAULT;
+ arg4 = O_RDWR;
arg5 = 0600;
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_Tdb",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);