]> git.sur5r.net Git - bacula/bacula/commitdiff
Small fix for 2 typos introduced in one of the last patches.
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 10 Feb 2009 13:57:40 +0000 (13:57 +0000)
committerMarco van Wieringen <mvw@planets.elm.net>
Tue, 10 Feb 2009 13:57:40 +0000 (13:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8435 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_tree.c

index f1b056553b7b3a08c506017ca1907bedd295a066..d5580ce3135dc76907f46ad872be130d9d0a9e85 100644 (file)
@@ -129,7 +129,7 @@ bool user_select_files_from_tree(TREE_CTX *tree)
       if (ua->api) user->signal(BNET_CMD_BEGIN);
       parse_args_only(ua->cmd, &ua->args, &ua->argc, ua->argk, ua->argv, MAX_CMD_ARGS);
       if (ua->argc == 0) {
-         ua->warning_msg(_("Invalid command \"%s\". Enter \"done\" to exit.\n")
+         ua->warning_msg(_("Invalid command \"%s\". Enter \"done\" to exit.\n"), ua->cmd);
          if (ua->api) user->signal(BNET_CMD_FAILED);
          continue;
       }
@@ -139,13 +139,12 @@ bool user_select_files_from_tree(TREE_CTX *tree)
       stat = false;
       for (i=0; i<comsize; i++)       /* search for command */
          if (strncasecmp(ua->argk[0],  _(commands[i].key), len) == 0) {
-            ua->cmd);
             stat = (*commands[i].func)(ua, tree);   /* go execute command */
             found = 1;
             break;
          }
       if (!found) {
-         ua->warning_msg(_("Invalid command \"%s\". Enter \"done\" to exit.\n")
+         ua->warning_msg(_("Invalid command \"%s\". Enter \"done\" to exit.\n"), ua->cmd);
          if (ua->api) user->signal(BNET_CMD_FAILED);
          continue;
       }