diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-18 13:52:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-18 13:52:30 +0000 |
commit | 2e6f6bc7f811dadab9fdd393981b37dfdbcd1fbc (patch) | |
tree | 7566473db563946eb3db88c704d22abb5e174ee7 /source3 | |
parent | c198d4c8be6b1a4f042151714107ff37fc446471 (diff) | |
download | samba-2e6f6bc7f811dadab9fdd393981b37dfdbcd1fbc.tar.gz samba-2e6f6bc7f811dadab9fdd393981b37dfdbcd1fbc.tar.bz2 samba-2e6f6bc7f811dadab9fdd393981b37dfdbcd1fbc.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nmbd/nmbd_winsserver.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |