From 5b5b813c291a7a14acb1288705b95f686f3f6714 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 15 Sep 2015 11:11:28 +0200 Subject: [PATCH] Avoid string displayed in restore menu do_prompt expects automsg to be set, but we use NULL in various places. Select parameter to modify (1-13): 13 Automatically selected : bpipe:/@bpipe@/encrypt-bug.jpg:cat 1:cat >/tmp/1 Plugin Restore Options restore_command: *None* Use above plugin configuration? (yes/mod/no): mod Automatically selected : restore_command (Restore command to use) ^^^^^^ --- bacula/src/dird/ua_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/dird/ua_select.c b/bacula/src/dird/ua_select.c index 343dbbead8..68cbefc53e 100644 --- a/bacula/src/dird/ua_select.c +++ b/bacula/src/dird/ua_select.c @@ -911,7 +911,7 @@ int do_prompt(UAContext *ua, const char *automsg, const char *msg, if (prompt) { bstrncpy(prompt, ua->prompt[1], max_prompt); } - ua->send_msg(_("Automatically selected %s: %s\n"), automsg, ua->prompt[1]); + ua->send_msg(_("Automatically selected %s: %s\n"), NPRTB(automsg), ua->prompt[1]); goto done; } /* If running non-interactive, bail out */ -- 2.39.5