git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d34521
)
s3:mark registry shares without path unavailable in the server, too
author
Michael Adam
<obnox@samba.org>
Tue, 5 May 2009 15:02:46 +0000
(17:02 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 6 May 2009 06:52:42 +0000
(08:52 +0200)
This prevents users from getting access to "/" in misconfigured setups.
Michael
source/smbd/service.c
patch
|
blob
|
history
diff --git
a/source/smbd/service.c
b/source/smbd/service.c
index 5e75fce0ff43144131ebf5944fd021b586fb887c..98b25369d1b8e1d8d3b4cc33ba23849ee59d60ae 100644
(file)
--- a/
source/smbd/service.c
+++ b/
source/smbd/service.c
@@
-286,6
+286,10
@@
static int load_registry_service(const char *servicename)
TALLOC_FREE(value);
}
+ if (!service_ok(res)) {
+ res = -1;
+ }
+
error:
TALLOC_FREE(key);