From 2e6f6bc7f811dadab9fdd393981b37dfdbcd1fbc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 18 Sep 1998 13:52:30 +0000 Subject: oops ... I got the filenames wrong in my cleanup of the wins database save, so it started saving weird filenames (from an unitialised fstring). chaos reigns! (This used to be commit 20a550d61e322cc9a0acfdf8fb974dafe0cd9603) --- source3/nmbd/nmbd_winsserver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index 1ce9160dea..cba3c1b308 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/nmbd/nmbd_winsserver.c @@ -1563,8 +1563,9 @@ void wins_write_database(BOOL background) } } - slprintf(fname,sizeof(fname),"%s/%s.%d", lp_lockdir(), WINS_LIST, (unsigned int)getpid()); + slprintf(fname,sizeof(fname),"%s/%s", lp_lockdir(), WINS_LIST); string_sub(fname,"//", "/"); + slprintf(fnamenew,sizeof(fnamenew),"%s.%u", fname, (unsigned int)getpid()); if((fp = fopen(fnamenew,"w")) == NULL) { -- cgit