summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-11 02:02:27 +0100
committerMichael Adam <obnox@samba.org>2008-03-11 11:15:50 +0100
commit67536eddc34e225562e31e500cf64c03d63ad1cc (patch)
tree5cf897a2acb83dd256ac51746d86b1331c1f3495
parent2b4378d0c5bbaba17b05f50d75d8ffffb103c602 (diff)
downloadsamba-67536eddc34e225562e31e500cf64c03d63ad1cc.tar.gz
samba-67536eddc34e225562e31e500cf64c03d63ad1cc.tar.bz2
samba-67536eddc34e225562e31e500cf64c03d63ad1cc.zip
registry shares: prevent creating regular share called "global".
This is a first quick fix. Registry shares should be rewritten to use libnet_conf. Michael (This used to be commit 71bd0bd0ea018e8c5033bbf904333c596330855a)
-rw-r--r--source3/smbd/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index a8aa25405a..8b73f68364 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -235,6 +235,10 @@ static int load_registry_service(const char *servicename)
return -1;
}
+ if (strequal(servicename, GLOBAL_NAME)) {
+ return -2;
+ }
+
if (asprintf(&path, "%s\\%s", KEY_SMBCONF, servicename) == -1) {
return -1;
}