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 5df51b426bcaa07aef732a74d6f19f0c653d6e68..c65ecfcbe5bb86ca0a0cefe284c90fad10b2c07a 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);