22c60d0987
pkgsrc change: Add support for DESTDIR. Changes from 3.0.24 are huge, please refer WHATSNEW.txt. <http://viewcvs.samba.org/cgi-bin/viewcvs.cgi/branches/SAMBA_3_0_26/WHATSNEW.txt?rev=22651&view=markup>
22 lines
868 B
Text
22 lines
868 B
Text
$NetBSD: patch-be,v 1.3 2007/10/28 07:28:48 taca Exp $
|
|
|
|
--- nmbd/nmbd_winsserver.c.orig 2007-06-26 10:16:47.000000000 +0900
|
|
+++ nmbd/nmbd_winsserver.c
|
|
@@ -574,7 +574,7 @@ BOOL initialise_wins(void)
|
|
}
|
|
|
|
/* Open the wins.tdb. */
|
|
- wins_tdb = tdb_open_log(lock_path("wins.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_CREAT|O_RDWR, 0600);
|
|
+ wins_tdb = tdb_open_log(state_path("wins.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_CREAT|O_RDWR, 0600);
|
|
if (!wins_tdb) {
|
|
DEBUG(0,("initialise_wins: failed to open wins.tdb. Error was %s\n",
|
|
strerror(errno) ));
|
|
@@ -2338,7 +2338,7 @@ void wins_write_database(time_t t, BOOL
|
|
}
|
|
}
|
|
|
|
- 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());
|
|
|