]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Ignore the case of characters Storage Policy (Pool/Job resource)
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Wed, 31 Mar 2021 16:10:28 +0000 (18:10 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:00 +0000 (09:03 +0100)
bacula/src/dird/store_mngr.h

index 95b4dcb3bb3833de8dc77060e7a4570df8c9951a..14c64c4745288cc0ecbe48048336230fa95e0e5b 100644 (file)
@@ -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++;