]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_dotcmds.c
03Dec05
[bacula/bacula] / bacula / src / dird / ua_dotcmds.c
index c8e181729c3b9ec3c9091ce94629bb045cfe6ffc..16ad9210da2e4d78cd4cc01d28b8429a59b3f6a7 100644 (file)
@@ -15,7 +15,7 @@
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
-   version 2 as ammended with additional clauses defined in the
+   version 2 as amended with additional clauses defined in the
    file LICENSE in the main source directory.
 
    This program is distributed in the hope that it will be useful,
@@ -118,7 +118,7 @@ static int diecmd(UAContext *ua, const char *cmd)
    JCR *jcr = NULL;
    int a;
 
-   bsendmsg(ua, "The Director will segment fault.\n");
+   bsendmsg(ua, _("The Director will segment fault.\n"));
    a = jcr->JobId; /* ref NULL pointer */
    jcr->JobId = 1000; /* another ref NULL pointer */
    return 0;
@@ -213,10 +213,10 @@ static int backupscmd(UAContext *ua, const char *cmd)
    if (!open_db(ua)) {
       return 1;
    }
-   if (ua->argc == 2 && strcmp(ua->argk[1], "client") != 0) {
+   if (ua->argc != 3 || strcmp(ua->argk[1], "client") != 0 || strcmp(ua->argk[2], "fileset") != 0) {
       return 1;
    }
-   Mmsg(ua->cmd, client_backups, ua->argv[1]);
+   Mmsg(ua->cmd, client_backups, ua->argv[1], ua->argv[2]);
    if (!db_sql_query(ua->db, ua->cmd, client_backups_handler, (void *)ua)) {
       bsendmsg(ua, _("Query failed: %s. ERR=%s\n"), ua->cmd, db_strerror(ua->db));
       return 1;