Fixed bug, reported by Phil: Profile entry Draft-Folder was case sensitive.
authormarkus schnalke <meillo@marmaro.de>
Tue, 13 Dec 2011 13:20:32 +0000 (14:20 +0100)
committermarkus schnalke <meillo@marmaro.de>
Tue, 13 Dec 2011 13:20:32 +0000 (14:20 +0100)
The components in the profile should be matched case*in*sensitive, always.

sbr/readconfig.c

index ef43bde..a557cda 100644 (file)
@@ -82,11 +82,12 @@ readconfig(struct node **npp, FILE *ib, char *file, int ctx)
                                np->n_context = ctx;
 
                                /*
-                               ** Now scan the list of `procs' and link in the
-                               ** field value to the global variable.
+                               ** Now scan the list of `procs' and link in
+                               ** the field value to the global variable.
                                */
                                for (ps = procs; ps->procname; ps++)
-                                       if (strcmp(np->n_name, ps->procname) == 0) {
+                                       if (mh_strcasecmp(np->n_name,
+                                                       ps->procname) == 0) {
                                                *ps->procnaddr = np->n_field;
                                                break;
                                        }