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:
parent
c198d4c8be
commit
2e6f6bc7f8
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user