From: Alain Spineux Date: Mon, 6 Nov 2017 13:19:05 +0000 (+0100) Subject: fix #3269 obey the user choice of "Are you sure you want to delete X JobIds X-Git-Tag: Release-9.0.6~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ebe09ef8adecf564bfeb74c99b131f8cf98410d1;p=bacula%2Fbacula fix #3269 obey the user choice of "Are you sure you want to delete X JobIds - "no" was ignored and all selected jobs where deleted - has been tested --- diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 4ff0542950..c496a60721 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -1615,7 +1615,7 @@ static void delete_job(UAContext *ua) if (sl.size() > 25 && (find_arg(ua, "yes") < 0)) { bsnprintf(buf, sizeof(buf), _("Are you sure you want to delete %d JobIds ? (yes/no): "), sl.size()); - if (!get_yesno(ua, buf)) { + if (!get_yesno(ua, buf) || ua->pint32_val==0) { return; } }