]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #8762 Allow up to 4096 in comment field
authorEric Bollengier <eric@baculasystems.com>
Tue, 1 Feb 2022 09:18:36 +0000 (10:18 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
bacula/src/dird/ua_input.c

index a457ea632b4df1e4e5ed7babeb33c26e56a652a4..f93008c867df6fc37a9e87236d506d526a817a18 100644 (file)
@@ -235,7 +235,7 @@ bool is_comment_legal(UAContext *ua, const char *name)
       return 0;
    }
    len = strlen(name);
-   if (len >= MAX_NAME_LENGTH) {
+   if (len >= 4096) {
       if (ua) {
          ua->error_msg(_("Comment too long.\n"));
       }