]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix org#2605 About incorrect message in restore command
authorEric Bollengier <eric@baculasystems.com>
Fri, 30 Apr 2021 08:03:30 +0000 (10:03 +0200)
committerEric Bollengier <eric@baculasystems.com>
Fri, 30 Apr 2021 08:03:51 +0000 (10:03 +0200)
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

index f9cdfd16532a28d666127e70af95b6a977f53189..9cd90d2ed4cb427e293602243c3a5869110f2a3a 100644 (file)
@@ -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;
    }