add metze's patch for smb_register functions
authorSimo Sorce <idra@samba.org>
Fri, 16 May 2003 06:20:57 +0000 (06:20 +0000)
committerSimo Sorce <idra@samba.org>
Fri, 16 May 2003 06:20:57 +0000 (06:20 +0000)
(This used to be commit 1480c7e8c7a84c34181118c449c50ca99fdcbc6b)

source3/auth/auth.c
source3/passdb/pdb_interface.c
source3/smbd/vfs.c

index 0c4fe76830750cbcb1035ed43fe8308ad0eb1e12..dea97a7190b9c7cd5d6e42e12b4c8ade53466eae 100644 (file)
@@ -63,7 +63,7 @@ static struct auth_init_function_entry *auth_find_backend_entry(const char *name
        struct auth_init_function_entry *entry = backends;
 
        while(entry) {
-               if (strequal(entry->name, name)) return entry;
+               if (strcmp(entry->name, name)==0) return entry;
                entry = entry->next;
        }
        
index 7b44df193fccfd72da0c6c027a41d8fc46ce61d4..7640228ab984bde23f8a5b3eaa70461ee9a66add 100644 (file)
@@ -74,7 +74,7 @@ static struct pdb_init_function_entry *pdb_find_backend_entry(const char *name)
        struct pdb_init_function_entry *entry = backends;
 
        while(entry) {
-               if (strcasecmp(entry->name, name) == 0) return entry;
+               if (strcmp(entry->name, name)==0) return entry;
                entry = entry->next;
        }
 
index 62f03f0cd6e9dd53449131c4e30bd62d42711b05..d24ae54d42ee7dcf1ad31cbfaa87a71d2182d8db 100644 (file)
@@ -135,12 +135,9 @@ static struct vfs_ops default_vfs = {
 static struct vfs_init_function_entry *vfs_find_backend_entry(const char *name)
 {
        struct vfs_init_function_entry *entry = backends;
-       pstring stripped;
-
-       module_path_get_name(name, stripped);
  
        while(entry) {
-               if (strequal(entry->name, stripped)) return entry;
+               if (strcmp(entry->name, name)==0) return entry;
                entry = entry->next;
        }