1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

s3:passdb: put login_cache.tdb into cache_dir, not lock_dir.

Michael
This commit is contained in:
Michael Adam 2009-01-16 00:30:36 +01:00
parent 0b87f210f1
commit 62e7849ddc

View File

@ -35,7 +35,8 @@ bool login_cache_init(void)
/* skip file open if it's already opened */
if (cache) return True;
if (asprintf(&cache_fname, "%s/%s", lp_lockdir(), LOGIN_CACHE_FILE) == -1) {
cache_fname = cache_path(LOGIN_CACHE_FILE);
if (cache_fname == NULL) {
DEBUG(0, ("Filename allocation failed.\n"));
return False;
}
@ -48,7 +49,7 @@ bool login_cache_init(void)
if (!cache)
DEBUG(5, ("Attempt to open %s failed.\n", cache_fname));
SAFE_FREE(cache_fname);
TALLOC_FREE(cache_fname);
return (cache ? True : False);
}