git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e90152
)
When enumerating dfs shares loop from 0 to lp_numservices() instead of
author
Tim Potter
<tpot@samba.org>
Mon, 8 Sep 2003 00:55:29 +0000
(
00:55
+0000)
committer
Tim Potter
<tpot@samba.org>
Mon, 8 Sep 2003 00:55:29 +0000
(
00:55
+0000)
relying on lp_servicename(n) to return an empty string for invalid
service numbers. For some reason it is returning NULL now.
Fixes bug 403.
(This used to be commit
cebb2abd2e946a5f9f2d84a7e8ae82eceecd0274
)
source3/msdfs/msdfs.c
patch
|
blob
|
history
diff --git
a/source3/msdfs/msdfs.c
b/source3/msdfs/msdfs.c
index afe523bf19b778aa8c9eda6cce0e5fbb3e41003e..4c86cd0f94bb29e06e58d94de3603259df9387c7 100644
(file)
--- a/
source3/msdfs/msdfs.c
+++ b/
source3/msdfs/msdfs.c
@@
-919,7
+919,7
@@
int enum_msdfs_links(struct junction_map* jn)
if(!lp_host_msdfs())
return 0;
- for(i=0;
*lp_servicename(i
);i++) {
+ for(i=0;
i < lp_numservices(
);i++) {
if(lp_msdfs_root(i))
form_junctions(i,jn,&jn_count);
}