From: Eric Bollengier Date: Wed, 14 Sep 2022 12:54:35 +0000 (+0200) Subject: Fix #9334 About issue with the AllowXXXXDirectories directive that was not case sensi... X-Git-Tag: Beta-15.0.0~510 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a76e3b41cf5ec26b3f7f3035ae0569d6f8673cb;p=thirdparty%2Fbacula.git Fix #9334 About issue with the AllowXXXXDirectories directive that was not case sensitive on Unix --- diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index e0ee4731a..957c15420 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -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 */