aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-06-23 11:22:14 +0000
committerDaouda Lo <daouda@mandriva.com>2003-06-23 11:22:14 +0000
commit95b0628190c3ab5e840f379d8de5097108ef0571 (patch)
tree306ab59f1cc5070ab54715976be34b3a9c9a3b8c
parent0513f7d0a282d13e345cc9f678e26b56130511f8 (diff)
downloaduserdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar
userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar.gz
userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar.bz2
userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar.xz
userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.zip
- password expiration sanity checks
-rwxr-xr-xuserdrake22
1 files changed, 1 insertions, 1 deletions
diff --git a/userdrake2 b/userdrake2
index b038ef0..8052328 100755
--- a/userdrake2
+++ b/userdrake2
@@ -548,7 +548,7 @@ sub Edit {
$dayStr->set_text($times->{daystr}); $month->set_text($times->{month}); $dayInt->set_text($times->{dayint}); $year->set_text($times->{year});
}
$min = $userEnt->ShadowMin($GetValue); $max =$userEnt->ShadowMax($GetValue); $warn = $userEnt->ShadowWarn($GetValue); $inact = $userEnt->ShadowInact($GetValue);
- if ($min && $min != -1 || $max && $max != 99999 || $warn && $warn != -1 || $inact && $inact != -1) {
+ if ($min && $min != -1 || $max && $max != 99999 || $warn && $warn != 7 && $warn != -1 || $inact && $inact != -1) {
$us->{o}->{pcheckexpire}->set_active(1); $v->set_sensitive(1);
}
$min && $min != -1 and $us->{o}->{dbca}->set_text($min); $max && $max != -1 and $us->{o}->{dbcr}->set_text($max);