From 4e592f08c7c87494fe2937ebb3e23b65b39ad09d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 19 Apr 2012 09:04:21 +0200 Subject: [PATCH] Fix restore_job restore keyword --- bacula/src/cats/create_sqlite3_database.in | 3 ++- bacula/src/dird/ua_cmds.c | 2 +- bacula/src/dird/ua_select.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bacula/src/cats/create_sqlite3_database.in b/bacula/src/cats/create_sqlite3_database.in index 5764be0099..c8b35d48d5 100644 --- a/bacula/src/cats/create_sqlite3_database.in +++ b/bacula/src/cats/create_sqlite3_database.in @@ -3,9 +3,10 @@ # shell script to create Bacula SQLite tables bindir=@SQLITE_BINDIR@ +PATH=$bindir:$PATH cd @working_dir@ db_name=@db_name@ -${bindir}/sqlite3 $* ${db_name}.db < client= storage= bootstrap= " - "restore_job=" + "restorejob=" "\n\tcomment= jobid= done select all"), false}, { NT_("relabel"), relabel_cmd, _("Relabel a tape"), diff --git a/bacula/src/dird/ua_select.c b/bacula/src/dird/ua_select.c index ffe1baac55..0780aaa000 100644 --- a/bacula/src/dird/ua_select.c +++ b/bacula/src/dird/ua_select.c @@ -299,7 +299,7 @@ JOB *select_job_resource(UAContext *ua) JOB *get_restore_job(UAContext *ua) { JOB *job; - int i = find_arg_with_value(ua, "restore_job"); + int i = find_arg_with_value(ua, "restorejob"); if (i >= 0 && acl_access_ok(ua, Job_ACL, ua->argv[i])) { job = (JOB *)GetResWithName(R_JOB, ua->argv[i]); if (job && job->JobType == JT_RESTORE) { -- 2.39.5