/*
Bacula® - The Network Backup Solution
- Copyright (C) 2001-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2001-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
#define YES_POS 14
- if (!open_db(ua)) {
+ if (!open_client_db(ua)) {
return 1;
}
bsendmsg(ua, _("Catalog \"%s\" not found\n"), catalog_name);
return 0;
}
+ if (!acl_access_ok(ua, Catalog_ACL, catalog->name())) {
+ bsendmsg(ua, _("No authorization. Catalog \"%s\".\n"), catalog->name());
+ return 0;
+ }
}
Dmsg1(800, "Using catalog=%s\n", NPRT(catalog_name));
*/
jcr = new_jcr(sizeof(JCR), dird_free_jcr);
set_jcr_defaults(jcr, job);
+ jcr->unlink_bsr = ua->jcr->unlink_bsr; /* copy unlink flag from caller */
+ ua->jcr->unlink_bsr = false;
jcr->verify_job = verify_job;
jcr->previous_job = previous_job;
jcr->pool = pool;
set_rwstorage(jcr, &store);
jcr->client = client;
+ pm_strcpy(jcr->client_name, client->name());
jcr->fileset = fileset;
jcr->ExpectedFiles = files;
if (catalog != NULL) {