1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-be,v 1.2 2006/04/01 04:55:35 jlam Exp $
--- nmbd/nmbd_winsserver.c.orig 2006-01-24 18:46:38.000000000 -0500
+++ nmbd/nmbd_winsserver.c
@@ -244,7 +244,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;
@@ -1838,7 +1838,7 @@ void wins_write_database(BOOL background
}
}
- slprintf(fname,sizeof(fname)-1,"%s/%s", lp_lockdir(), WINS_LIST);
+ pstrcpy(fname, state_path(WINS_LIST));
all_string_sub(fname,"//", "/", 0);
slprintf(fnamenew,sizeof(fnamenew)-1,"%s.%u", fname, (unsigned int)sys_getpid());
|