git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ba54d
)
oops ... I got the filenames wrong in my cleanup of the wins database
author
Andrew Tridgell
<tridge@samba.org>
Fri, 18 Sep 1998 13:52:30 +0000
(13:52 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 18 Sep 1998 13:52:30 +0000
(13:52 +0000)
save, so it started saving weird filenames (from an unitialised
fstring).
chaos reigns!
source/nmbd/nmbd_winsserver.c
patch
|
blob
|
history
diff --git
a/source/nmbd/nmbd_winsserver.c
b/source/nmbd/nmbd_winsserver.c
index 1ce9160deac31cf3f31e238b31d2864555ee4a5c..cba3c1b308c379bb88c42cb08df7d93c5ffbb89c 100644
(file)
--- a/
source/nmbd/nmbd_winsserver.c
+++ b/
source/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)
{