git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b87f21
)
s3:passdb: put login_cache.tdb into cache_dir, not lock_dir.
author
Michael Adam
<obnox@samba.org>
Thu, 15 Jan 2009 23:30:36 +0000
(
00:30
+0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 16 Jan 2009 00:02:22 +0000
(
01:02
+0100)
Michael
source3/passdb/login_cache.c
patch
|
blob
|
history
diff --git
a/source3/passdb/login_cache.c
b/source3/passdb/login_cache.c
index 4e14293e73bb89382071425ff0d4c92a3ab6e0ea..2a6350045be730ce690bcd31b80ad9b567942f46 100644
(file)
--- a/
source3/passdb/login_cache.c
+++ b/
source3/passdb/login_cache.c
@@
-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);
}