Skip to content

Commit

Permalink
Fix small problem with defaults cmd on copy job.
Browse files Browse the repository at this point in the history
Hopefully last occurrence of side effects now that a copy job doesn't
need to have a client specified in its definition.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 8ec77d0 commit 955a888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dird/ua_dotcmds.c
Expand Up @@ -1153,12 +1153,12 @@ static bool defaultscmd(UAContext *ua, const char *cmd)
ua->send_msg("client=%s", (job->client) ? job->client->name() : _("*None*"));
get_job_storage(&store, job, NULL);
ua->send_msg("storage=%s", store.store->name());
ua->send_msg("where=%s", job->RestoreWhere?job->RestoreWhere : "");
ua->send_msg("where=%s", job->RestoreWhere ? job->RestoreWhere : "");
ua->send_msg("level=%s", level_to_str(job->JobLevel));
ua->send_msg("type=%s", job_type_to_str(job->JobType));
ua->send_msg("fileset=%s", (job->fileset) ? job->fileset->name() : _("*None*"));
ua->send_msg("enabled=%d", job->enabled);
ua->send_msg("catalog=%s", job->client->catalog->name());
ua->send_msg("catalog=%s", (job->client) ? job->client->catalog->name() : _("*None*"));
}
} else if (bstrcmp(ua->argk[1], "client")) {
CLIENTRES *client;
Expand Down

0 comments on commit 955a888

Please sign in to comment.