1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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)
This commit is contained in:
Andrew Tridgell 1998-09-18 13:52:30 +00:00
parent c198d4c8be
commit 2e6f6bc7f8

View File

@ -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)
{