diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-29 08:38:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:01 -0500 |
commit | 09d0b152b7bd85aa01898af81bd166a7673ab886 (patch) | |
tree | 6bebf9648412322c15b2b8a5777aa67c3a09d463 /source4/rpc_server | |
parent | 98052096e3150c2b1a3d31fc6fcc1dbc0d7a3067 (diff) | |
download | samba-09d0b152b7bd85aa01898af81bd166a7673ab886.tar.gz samba-09d0b152b7bd85aa01898af81bd166a7673ab886.tar.xz samba-09d0b152b7bd85aa01898af81bd166a7673ab886.zip |
r3360: improved the deletion of tmp files. smbd now puts all tmp files in var/locks/smbd.tmp/
and deletes that dir on startup.
(This used to be commit 7e942e7f1bd2c293a0e6648df43a96f8b8a2a295)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/netlogon/schannel_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/schannel_state.c b/source4/rpc_server/netlogon/schannel_state.c index 0900c05393f..5657b1cd64e 100644 --- a/source4/rpc_server/netlogon/schannel_state.c +++ b/source4/rpc_server/netlogon/schannel_state.c @@ -33,12 +33,13 @@ static struct ldb_wrap *schannel_db_connect(TALLOC_CTX *mem_ctx) char *path; struct ldb_wrap *ldb; - path = lock_path(mem_ctx, "schannel.ldb"); + path = smbd_tmp_path(mem_ctx, "schannel.ldb"); if (!path) { return NULL; } ldb = ldb_wrap_connect(mem_ctx, path, 0, NULL); + talloc_free(path); if (!ldb) { return NULL; } |