]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Increase plugin object fields size
authorJorge Gea <jorge.gea@baculasystems.com>
Thu, 3 Mar 2022 09:20:19 +0000 (10:20 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:02 +0000 (13:57 +0200)
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.

bacula/src/baconfig.h

index 00da234d6e98c8d39768f75a66ac265c32e695ec..de83ef05876dc356dc316d550e67ab2f6995a343 100644 (file)
@@ -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