static void do_director_status(UAContext *ua);
static void do_all_status(UAContext *ua);
-static char OKqstatus[] = "2000 OK .status\n";
+static char OKqstatus[] = "1000 OK .status\n";
static char DotStatusJob[] = "JobId=%d JobStatus=%c JobErrors=%d\n";
/*
Dmsg1(20, "status:%s:\n", cmd);
if ((ua->argc != 3) || (strcasecmp(ua->argk[1], "dir"))) {
- bsendmsg(ua, "2900 Bad .status command, missing arguments.\n");
+ bsendmsg(ua, "1900 Bad .status command, missing arguments.\n");
return 1;
}
}
}
else {
- bsendmsg(ua, "2900 Bad .status command, wrong argument.\n");
+ bsendmsg(ua, "1900 Bad .status command, wrong argument.\n");
return 1;
}
/* Static variables */
static char qstatus[] = ".status %s\n";
-static char OKqstatus[] = "2000 OK .status\n";
+static char OKqstatus[] = "3000 OK .status\n";
static char DotStatusJob[] = "JobId=%d JobStatus=%c JobErrors=%d\n";
if (sscanf(dir->msg, qstatus, time) != 1) {
pm_strcpy(&jcr->errmsg, dir->msg);
Jmsg1(jcr, M_FATAL, 0, _("Bad .status command: %s\n"), jcr->errmsg);
- bnet_fsend(dir, "2900 Bad .status command, missing argument.\n");
+ bnet_fsend(dir, "3900 Bad .status command, missing argument.\n");
bnet_sig(dir, BNET_EOD);
return 0;
}
else {
pm_strcpy(&jcr->errmsg, dir->msg);
Jmsg1(jcr, M_FATAL, 0, _("Bad .status command: %s\n"), jcr->errmsg);
- bnet_fsend(dir, "2900 Bad .status command, wrong argument.\n");
+ bnet_fsend(dir, "3900 Bad .status command, wrong argument.\n");
bnet_sig(dir, BNET_EOD);
return 0;
}