From: Jorge Gea Date: Thu, 3 Mar 2022 09:20:19 +0000 (+0100) Subject: Increase plugin object fields size X-Git-Tag: Beta-15.0.0~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f8533b687e34cdd12a3b3c95e86f1a966d9e05;p=thirdparty%2Fbacula.git Increase plugin object fields size In Plugins like M365, fields like UUID or SRC can have really long values (+200 char). Without increasing the max length they get truncated and they can be repeated in the DDBB, so useless. --- diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index 00da234d6..de83ef058 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -203,6 +203,9 @@ void InitWinAPIWrapper(); /* Maximum Name length including EOS */ #define MAX_NAME_LENGTH 128 +/* Maximum Name length for Plugin Object values as UUID, Category, SRC, etc. including EOS */ +#define MAX_PLUGINOBJ_NAME_LENGTH 512 + /* Maximum escaped Name lenght including EOS 2*MAX_NAME_LENGTH+1 */ #define MAX_ESCAPE_NAME_LENGTH 257