diff options
Diffstat (limited to 'source4/lib/dbwrap/dbwrap_tdb.c')
-rw-r--r-- | source4/lib/dbwrap/dbwrap_tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/dbwrap/dbwrap_tdb.c b/source4/lib/dbwrap/dbwrap_tdb.c index dedb344e0b..b256b6ccc4 100644 --- a/source4/lib/dbwrap/dbwrap_tdb.c +++ b/source4/lib/dbwrap/dbwrap_tdb.c @@ -25,6 +25,7 @@ #include "lib/dbwrap/dbwrap.h" #include "system/filesys.h" #include "db_wrap.h" +#include "param/param.h" struct db_tdb_ctx { struct tdb_wrap *wtdb; @@ -240,7 +241,7 @@ struct db_context *db_tmp_open_tdb(TALLOC_CTX *mem_ctx, const char *name, int td /* the name passed in should not be a full path, it should be just be the db name */ - path = smbd_tmp_path(result, name); + path = smbd_tmp_path(result, global_loadparm, name); db_tdb->wtdb = tdb_wrap_open(db_tdb, path, 0, tdb_flags, O_CREAT|O_RDWR, 0666); |