"and all Jobs saved on that volume from the Catalog\n"),
mr.VolumeName);
- if (!get_cmd(ua, _("If you want to continue enter pretty please: "))) {
+ if (!get_cmd(ua, _("Are you sure you want to delete this Volume? (yes/no): "))) {
return 1;
}
- if (strcmp(ua->cmd, _("pretty please")) == 0) {
+ if (strcasecmp(ua->cmd, _("yes")) == 0) {
db_delete_media_record(ua->db, &mr);
}
return 1;
if (!get_pool_dbr(ua, &pr)) {
return 1;
}
- if (!get_cmd(ua, _("If you want to continue enter pretty please: "))) {
+ if (!get_cmd(ua, _("Are you sure you want to delete this Pool? (yes/no): "))) {
return 1;
}
- if (strcmp(ua->cmd, _("pretty please")) == 0) {
+ if (strcasecmp(ua->cmd, _("yes")) == 0) {
db_delete_pool_record(ua->db, &pr);
}
return 1;
/*
* At user request modify parameters of job to be run.
*/
- if (strcasecmp(ua->cmd, _("mod")) == 0) {
+ if (strlen(ua->cmd) == 0) {
+ bsendmsg(ua, _("Job not run.\n"));
+ free_jcr(jcr);
+ return 0; /* do not run */
+ }
+ if (strncasecmp(ua->cmd, _("mod"), strlen(ua->cmd)) == 0) {
FILE *fd;
start_prompt(ua, _("Parameters to modify:\n"));
free_jcr(jcr);
return 0; /* error do no run Job */
}
- if (strcasecmp(ua->cmd, _("yes")) != 0) {
- bsendmsg(ua, _("Job not run.\n"));
- free_jcr(jcr);
- return 0; /* do not run */
+ if (strncasecmp(ua->cmd, _("yes"), strlen(ua->cmd)) == 0) {
+ Dmsg1(200, "Calling run_job job=%x\n", jcr->job);
+ run_job(jcr);
+ return 1;
}
- Dmsg1(200, "Calling run_job job=%x\n", jcr->job);
- run_job(jcr);
- return 1;
+ bsendmsg(ua, _("Job not run.\n"));
+ free_jcr(jcr);
+ return 0; /* do not run */
+
}
char buf[MAXSTRING];
POOLMEM *fname = get_pool_memory(PM_MESSAGE);
int do_MD5 = FALSE;
+ long file_index = 0, attr_file_index = 0;
memset(&fdbr, 0, sizeof(FILE_DBR));
fd = jcr->file_bsock;
* Link name ???
*/
while ((n=bget_msg(fd, 0)) > 0 && !job_cancelled(jcr)) {
- long file_index = 0, attr_file_index = 0;
int stream;
char *attr, *p, *fn;
char Opts_MD5[MAXSTRING]; /* Verify Opts or MD5 signature */
@cp -f ../bacula-fd.exe wr/$(sbindir)/bacula-fd.exe
@cp -f ../../tools/smtp.exe wr/$(sbindir)/smtp.exe
@echo "Copying bacula-fd.conf..."
- @cp -f ../bacula-fd.conf wr/$(sysconfdir)/bacula-fd.conf
+ @cp -f ../bacula-fd.conf wr/$(sysconfdir)/bacula-fd.conf.new
# the two dummy files are necessary to insure that WinZip
# actually creates the directories.
@echo "dummy" >wr/tmp/dummy.txt
if (jcr->next_dev) {
jcr->next_dev->prev_dev = jcr->prev_dev;
}
+ jcr->next_dev = jcr->prev_dev = NULL;
Dmsg1(000, "Detached Job %s\n", jcr->Job);
}
free_pool_memory(jcr->RestoreBootstrap);
jcr->RestoreBootstrap = NULL;
}
+ if (jcr->next_dev && jcr->prev_dev) {
+ Emsg0(M_FATAL, 0, _("In free_jcr(), but still attached to device!!!!\n"));
+ }
return;
}
/* */
#define VERSION "1.25"
#define VSTRING "1"
-#define DATE "19 August 2002"
-#define LSMDATE "19Aug02"
+#define DATE "20 August 2002"
+#define LSMDATE "20Aug02"
/* Debug flags */
#define DEBUG 1