/[smecontribs]/rpms/smeserver-password/contribs8/smeserver-password-1.0.0-fix_expire_field.patch
ViewVC logotype

Contents of /rpms/smeserver-password/contribs8/smeserver-password-1.0.0-fix_expire_field.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Feb 11 08:34:09 2015 UTC (9 years, 9 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-password-1_0_0-36_el5_sme, smeserver-password-1_0_0-40_el5_sme, smeserver-password-1_0_0-41_el5_sme, smeserver-password-1_0_0-38_el5_sme, smeserver-password-1_0_0-37_el5_sme, smeserver-password-1_0_0-39_el5_sme, HEAD
* Tue Feb 10 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.0-36
- Fix the expire field error [SME: 8838]
- code done by Stefano Zamboni <zamboni@mind-at-work.it>

1 diff -Nur smeserver-password-1.2.0_old/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/passwordopt.pm smeserver-password-1.2.0_new/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/passwordopt.pm
2 --- smeserver-password-1.2.0_old/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/passwordopt.pm 2015-02-09 16:42:08.823218548 +0100
3 +++ smeserver-password-1.2.0_new/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/passwordopt.pm 2015-02-09 16:43:24.064154300 +0100
4 @@ -123,7 +123,7 @@
5 $star = $self->localise('ACCOUNT_LOCKED');
6 }
7 my $key = $user->key;
8 - my $cmd = "chage -l $key | grep -i 'password expires' | cut -d ':' -f 2";
9 + my $cmd = "chage -l $key | grep 'Password expires' | cut -d ':' -f 2";
10 my $expiration = `$cmd 2>/dev/null`;
11 $cmd = "chage -l $key | grep -i 'last' | cut -d ':' -f 2";
12 my $lastchange = `$cmd 2>/dev/null`;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed