From 2ad79af331ee77a7772a1e7840d3ce613ca051ae Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 20 Jan 2007 00:49:04 +0000 Subject: r20920: use cluster_tdb_tmp_open() in ntvfs backend code (This used to be commit c9080c54872f107d1e42e77261df50a5d55d294f) --- source4/ntvfs/common/notify.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source4/ntvfs/common/notify.c') diff --git a/source4/ntvfs/common/notify.c b/source4/ntvfs/common/notify.c index 0ee66a5a41..2306cfe742 100644 --- a/source4/ntvfs/common/notify.c +++ b/source4/ntvfs/common/notify.c @@ -85,7 +85,6 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server, struct event_context *ev, struct share_config *scfg) { - char *path; struct notify_context *notify; if (share_bool_option(scfg, NOTIFY_ENABLE, NOTIFY_ENABLE_DEFAULT) != True) { @@ -97,11 +96,7 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server, return NULL; } - path = smbd_tmp_path(notify, "notify.tdb"); - notify->w = tdb_wrap_open(notify, path, 0, - TDB_SEQNUM, - O_RDWR|O_CREAT, 0600); - talloc_free(path); + notify->w = cluster_tdb_tmp_open(notify, "notify.tdb", TDB_SEQNUM); if (notify->w == NULL) { talloc_free(notify); return NULL; -- cgit