diff options
Diffstat (limited to 'source3/nmbd/nmbd_serverlistdb.c')
-rw-r--r-- | source3/nmbd/nmbd_serverlistdb.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/nmbd/nmbd_serverlistdb.c b/source3/nmbd/nmbd_serverlistdb.c index 349c3f4df3..28c164fc14 100644 --- a/source3/nmbd/nmbd_serverlistdb.c +++ b/source3/nmbd/nmbd_serverlistdb.c @@ -326,14 +326,7 @@ void write_browse_list(time_t t, bool force_write) updatecount++; - fname = talloc_strdup(ctx, lp_lockdir()); - if (!fname) { - return; - } - trim_char(fname,'\0' ,'/'); - fname = talloc_asprintf_append(fname, - "/%s", - SERVER_LIST); + fname = cache_path(SERVER_LIST); if (!fname) { return; } |