From ade7c4ffb66b6c2c3a350db7f701ebfa567bbc06 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 24 Sep 2004 02:02:40 +0000 Subject: don't ask when $in is not set in security_check() --- perl-install/printer/printerdrake.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/printer') diff --git a/perl-install/printer/printerdrake.pm b/perl-install/printer/printerdrake.pm index 5e340701f..2616aebe1 100644 --- a/perl-install/printer/printerdrake.pm +++ b/perl-install/printer/printerdrake.pm @@ -3786,7 +3786,8 @@ sub security_check { # wants to activate the spooler in the given security mode. Stop the # operation of installing the spooler if he disagrees. my $securitystr = ($security == 4 ? N("high") : N("paranoid")); - if ($in->ask_yesorno(N("Installing a printing system in the %s security level", $securitystr), + if ($in && + $in->ask_yesorno(N("Installing a printing system in the %s security level", $securitystr), N("You are about to install the printing system %s on a system running in the %s security level. This printing system runs a daemon (background process) which waits for print jobs and handles them. This daemon is also accessible by remote machines through the network and so it is a possible point for attacks. Therefore only a few selected daemons are started by default in this security level. -- cgit v1.2.1