From c9512d4f1c0b2dccd4299681e6a5966388583a05 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Mon, 23 Jun 2003 14:59:01 +0000 Subject: - use int to make SViOK succeded --- userdrake2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/userdrake2 b/userdrake2 index a4d462c..9ce9a9c 100755 --- a/userdrake2 +++ b/userdrake2 @@ -30,6 +30,7 @@ use ugtk2 qw(:all); use interactive; use POSIX qw(mktime ceil); use USER; +use Devel::Peek; my $conffile = '/etc/sysconfig/userdrake'; my $secfile = '/etc/sysconfig/msec'; @@ -649,8 +650,9 @@ sub Edit { !$error and $userEnt->ShadowExpire($Exp); } else { $userEnt->ShadowExpire(ceil(-1)) } if ($us->{o}->{pcheckexpire}->get_active()) { - my $allowed = $us->{o}->{dbca}->get_text(); my $required = $us->{o}->{dbcr}->get_text(); - my $warning = $us->{o}->{bwbc}->get_text(); my $inactive = $us->{o}->{dbai}->get_text(); + my $allowed = int($us->{o}->{dbca}->get_text()); my $required = int($us->{o}->{dbcr}->get_text()); + my $warning = int($us->{o}->{bwbc}->get_text()); my $inactive = int($us->{o}->{dbai}->get_text()); + $allowed && $required && $warning && $inactive or RaiseError(N("Please specify all field for password aging")); if(!$error) { $userEnt->ShadowMin($allowed); $userEnt->ShadowMax($required); -- cgit v1.2.1