fprintf(stderr, "messaging_init failed\n");
goto fail;
}
- backend = db_open(msg, "test_watch.tdb", 0, TDB_DEFAULT,
+ backend = db_open(msg, "test_watch.tdb", 0, TDB_CLEAR_IF_FIRST,
O_CREAT|O_RDWR, 0644, DBWRAP_LOCK_ORDER_1,
DBWRAP_FLAG_NONE);
if (backend == NULL) {
goto fail;
}
+ (void)unlink("test_watch.tdb");
ret = true;
fail:
TALLOC_FREE(req);