Don't ignore case in lp_number() because the rest of the daemon code
authorWayne Davison <wayned@samba.org>
Fri, 30 Jul 2004 20:05:37 +0000 (20:05 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 30 Jul 2004 20:05:37 +0000 (20:05 +0000)
can't handle the case where the module name doesn't exactly match the
string the user provided.

loadparm.c

index 5df51b4..c65ecfc 100644 (file)
@@ -811,7 +811,7 @@ int lp_number(char *name)
    int iService;
 
    for (iService = iNumServices - 1; iService >= 0; iService--)
-      if (strequal(lp_name(iService), name))
+      if (strcmp(lp_name(iService), name) == 0)
          break;
 
    return (iService);