Skip to content

Commit

Permalink
dir: add missing string to Jmsg() in ua_prune.cc
Browse files Browse the repository at this point in the history
Fixes #1257: Prune volume command may crash the director

Previously the mr->VolumeName to fill the %s in the Jmsg was missing.
  • Loading branch information
arogge committed Jun 25, 2020
1 parent 3964c95 commit 664cd2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/dird/ua_prune.cc
Expand Up @@ -866,10 +866,12 @@ bool PruneVolume(UaContext* ua, MediaDbRecord* mr)

if (!VolumeIsNowEmtpy) {
Jmsg(ua->jcr, M_INFO, 0,
_("Volume \"%s\" still contains jobs after pruning.\n"));
_("Volume \"%s\" still contains jobs after pruning.\n"),
mr->VolumeName);
} else {
Jmsg(ua->jcr, M_INFO, 0,
_("Volume \"%s\" contains no jobs after pruning.\n"));
_("Volume \"%s\" contains no jobs after pruning.\n"),
mr->VolumeName);
}
}

Expand Down

0 comments on commit 664cd2e

Please sign in to comment.