Skip to content

Commit

Permalink
Set JCR in TSD for stored and filed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed May 9, 2015
1 parent dbcfdf8 commit c0c8f12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/filed/dir_cmd.c
Expand Up @@ -439,6 +439,7 @@ static void *handle_director_connection(BSOCK *dir)
jcr->crypto.pki_signers = me->pki_signers;
jcr->crypto.pki_recipients = me->pki_recipients;
dir->set_jcr(jcr);
set_jcr_in_tsd(jcr);
enable_backup_privileges(NULL, 1 /* ignore_errors */);

Dmsg0(120, "Calling Authenticate\n");
Expand Down
2 changes: 2 additions & 0 deletions src/stored/dir_cmd.c
Expand Up @@ -240,6 +240,8 @@ static void *handle_director_connection(BSOCK *dir, char *job_name)

Dmsg0(1000, "stored in start_job\n");

set_jcr_in_tsd(jcr);

/*
* Authenticate the Director
*/
Expand Down

0 comments on commit c0c8f12

Please sign in to comment.