[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-209-g71bd0bd

Michael Adam obnox at samba.org
Tue Mar 11 10:16:05 GMT 2008


The branch, v3-2-test has been updated
       via  71bd0bd0ea018e8c5033bbf904333c596330855a (commit)
      from  29ccc0e233bae160f7a6e1b0ff6b6cdda4d0f4ee (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 71bd0bd0ea018e8c5033bbf904333c596330855a
Author: Michael Adam <obnox at samba.org>
Date:   Tue Mar 11 02:02:27 2008 +0100

    registry shares: prevent creating regular share called "global".
    
    This is a first quick fix.
    Registry shares should be rewritten to use libnet_conf.
    
    Michael

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/service.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/service.c b/source/smbd/service.c
index a8aa254..8b73f68 100644
--- a/source/smbd/service.c
+++ b/source/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;
 	}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list