summaryrefslogtreecommitdiffstats
path: root/source/nmbd
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2007-11-01 15:53:44 -0400
committerGerald (Jerry) Carter <jerry@samba.org>2007-11-01 15:53:44 -0400
commitd6cdbfd875bb2653e831d314726c3240beb0a96b (patch)
treeb87fff1652cd8570dd93e0e20319e1f0501c5eea /source/nmbd
parentb7d2fadbef044a89920da613b1aafc74a3d94e24 (diff)
downloadsamba-d6cdbfd875bb2653e831d314726c3240beb0a96b.tar.gz
samba-d6cdbfd875bb2653e831d314726c3240beb0a96b.tar.xz
samba-d6cdbfd875bb2653e831d314726c3240beb0a96b.zip
Patch 2 of 3 from Debian Samba packagers:
The point is doing the following associations: - non discardable state data (all TDB files that may need to be backed up) go to statedir - shared data (codepage stuff) go to codepagedir The patch *does not change* the default location for these directories. So, there is no behaviour change when applying it. The main change is for samba developers who have to think when dealing with files that previously pertained to libdir whether they: - go in statedir - go in codepagedir - stay in libdir
Diffstat (limited to 'source/nmbd')
-rw-r--r--source/nmbd/nmbd_winsserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nmbd/nmbd_winsserver.c b/source/nmbd/nmbd_winsserver.c
index 70303af48b1..736bbf4068e 100644
--- a/source/nmbd/nmbd_winsserver.c
+++ b/source/nmbd/nmbd_winsserver.c
@@ -584,7 +584,7 @@ bool initialise_wins(void)
add_samba_names_to_subnet(wins_server_subnet);
- if((fp = x_fopen(lock_path(WINS_LIST),O_RDONLY,0)) == NULL) {
+ if((fp = x_fopen(state_path(WINS_LIST),O_RDONLY,0)) == NULL) {
DEBUG(2,("initialise_wins: Can't open wins database file %s. Error was %s\n",
WINS_LIST, strerror(errno) ));
return True;
@@ -2337,7 +2337,7 @@ void wins_write_database(time_t t, bool background)
}
}
- slprintf(fname,sizeof(fname)-1,"%s/%s", lp_lockdir(), WINS_LIST);
+ slprintf(fname,sizeof(fname)-1,"%s/%s", dyn_STATEDIR(), WINS_LIST);
all_string_sub(fname,"//", "/", 0);
slprintf(fnamenew,sizeof(fnamenew)-1,"%s.%u", fname, (unsigned int)sys_getpid());