]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #9334 About issue with the AllowXXXXDirectories directive that was not case sensi...
authorEric Bollengier <eric@baculasystems.com>
Wed, 14 Sep 2022 12:54:35 +0000 (14:54 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
bacula/src/baconfig.h

index e0ee4731a00722ec83ac20509aa023ce6b559914..957c154202c33f9dcd53cfe9fbe1e40cac70bd0f 100644 (file)
@@ -593,9 +593,9 @@ void t_msg(const char *file, int line, int64_t level, const char *fmt,...);
 /* Helper macro e.g. for comparison of file patch with allowed directory
  * On Linux/Unix OSes, paths are case sensitive while on Windows it is not the case */
 #ifdef HAVE_WIN32
-#define b_path_match strstr
-#else
 #define b_path_match strcasestr
+#else
+#define b_path_match strstr
 #endif // HAVE_WIN32
 
 /* Use bstrncpy instead of strncpy because it ensures last char is a 0 */