aboutsummaryrefslogtreecommitdiffstats
path: root/userdrake2
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-06-23 14:59:01 +0000
committerDaouda Lo <daouda@mandriva.com>2003-06-23 14:59:01 +0000
commitc9512d4f1c0b2dccd4299681e6a5966388583a05 (patch)
tree2aab57637733f19cd685e489c55a59e5bc7a26a1 /userdrake2
parenta85196ace890fc8a37dd817ac1ada31415b0b542 (diff)
downloaduserdrake-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-xuserdrake26
1 files 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);