GetShareMapping and DeleteShareMapping requests may be sent with a share
name that is of differing case to the one stored in the shadow copy
share mapping state. Lookup should be case-insensitive.
return NULL;
}
+/* lookup is case-insensitive */
static struct fss_sc_smap *sc_smap_lookup(struct fss_sc_smap *smaps_head,
- const char *share)
+ const char *share)
{
struct fss_sc_smap *sc_smap;
for (sc_smap = smaps_head; sc_smap; sc_smap = sc_smap->next) {
- if (!strcmp(sc_smap->share_name, share)) {
+ if (!strcasecmp_m(sc_smap->share_name, share)) {
return sc_smap;
}
}