* Version $Id$
*/
/*
- Copyright (C) 2001-2005 Kern Sibbald
+ Copyright (C) 2001-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
bstrncpy(jr->Job, ua->argv[i], sizeof(jr->Job));
} else if (strcasecmp(ua->argk[i], N_("jobid")) == 0 && ua->argv[i]) {
jr->JobId = str_to_int64(ua->argv[i]);
+ jr->Job[0] = 0;
} else {
continue;
}
return jr->JobId;
}
+ jr->JobId = 0;
+ jr->Job[0] = 0;
+
+ for (i=1; i<ua->argc; i++) {
+ if (strcasecmp(ua->argk[i], N_("jobname")) == 0 && ua->argv[i]) {
+ jr->JobId = 0;
+ bstrncpy(jr->Name, ua->argv[i], sizeof(jr->Name));
+ break;
+ }
+ }
if (!select_job_dbr(ua, jr)) { /* try once more */
return 0;
}
item = -1;
goto done;
}
+// bnet_sig(ua->UA_sock, BNET_START_SELECT);
bsendmsg(ua, ua->prompt[0]);
for (i=1; i < ua->num_prompts; i++) {
bsendmsg(ua, "%6d: %s\n", i, ua->prompt[i]);
}
+// bnet_sig(ua->UA_sock, BNET_END_SELECT);
for ( ;; ) {
/* First item is the prompt string, not the items */
store = NULL;
}
- if (!store && store_name) {
+ if (!store && store_name && store_name[0] != 0) {
store = (STORE *)GetResWithName(R_STORAGE, store_name);
if (!store) {
bsendmsg(ua, _("Storage resource \"%s\": not found\n"), store_name);