From: Michal Rakowski Date: Wed, 31 Mar 2021 16:10:28 +0000 (+0200) Subject: Ignore the case of characters Storage Policy (Pool/Job resource) X-Git-Tag: Release-11.3.2~644 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065e76bf54fa7176aa1e870a121a36b48f2e5d9a;p=thirdparty%2Fbacula.git Ignore the case of characters Storage Policy (Pool/Job resource) --- diff --git a/bacula/src/dird/store_mngr.h b/bacula/src/dird/store_mngr.h index 95b4dcb3b..14c64c474 100644 --- a/bacula/src/dird/store_mngr.h +++ b/bacula/src/dird/store_mngr.h @@ -138,7 +138,7 @@ class StorageManager : public SMARTALLOC { static bool check_policy(const char *policy) { int i = 0; while (storage_mngmt_policy[i]) { - if (strcmp(policy, storage_mngmt_policy[i]) == 0) { + if (strcasecmp(policy, storage_mngmt_policy[i]) == 0) { return true; } i++;