diff options
author | Daouda Lo <daouda@mandriva.com> | 2003-06-23 14:59:01 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2003-06-23 14:59:01 +0000 |
commit | c9512d4f1c0b2dccd4299681e6a5966388583a05 (patch) | |
tree | 2aab57637733f19cd685e489c55a59e5bc7a26a1 /userdrake2 | |
parent | a85196ace890fc8a37dd817ac1ada31415b0b542 (diff) | |
download | userdrake-c9512d4f1c0b2dccd4299681e6a5966388583a05.tar userdrake-c9512d4f1c0b2dccd4299681e6a5966388583a05.tar.gz userdrake-c9512d4f1c0b2dccd4299681e6a5966388583a05.tar.bz2 userdrake-c9512d4f1c0b2dccd4299681e6a5966388583a05.tar.xz userdrake-c9512d4f1c0b2dccd4299681e6a5966388583a05.zip |
- use int to make SViOK succeded
Diffstat (limited to 'userdrake2')
-rwxr-xr-x | userdrake2 | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |