From d613121929e7d73e5b294b3dede6314b8fa4f3f7 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 30 Apr 2021 10:03:30 +0200 Subject: [PATCH] Fix org#2605 About incorrect message in restore command Description: ------------ The error message generated when the fileset parameter of the restore command is invalid is misleading. *restore fileset= where=/tmp select all done yes FileSet argument: Volume name must be at least one character long. ^^^^^^^ --- bacula/src/lib/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/lib/edit.c b/bacula/src/lib/edit.c index f9cdfd165..9cd90d2ed 100644 --- a/bacula/src/lib/edit.c +++ b/bacula/src/lib/edit.c @@ -505,7 +505,7 @@ bool is_name_valid(const char *name, POOLMEM **msg) * Check if Bacula Resoure Name is valid */ /* - * Check if the Volume name has legal characters + * Check if the Volume/resource name has legal characters * If ua is non-NULL send the message */ bool is_name_valid(const char *name, POOLMEM **msg, const char *accept) @@ -539,7 +539,7 @@ bool is_name_valid(const char *name, POOLMEM **msg, const char *accept) } if (len == 0) { if (msg) { - Mmsg(msg, _("Volume name must be at least one character long.\n")); + Mmsg(msg, _("Name must be at least one character long.\n")); } return false; } -- 2.47.3