/[smeserver]/rpms/e-smith-base/sme7/e-smith-base-4.18.0-consoleValidateFirst.patch
ViewVC logotype

Contents of /rpms/e-smith-base/sme7/e-smith-base-4.18.0-consoleValidateFirst.patch

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


Revision 1.2 - (show annotations) (download)
Wed Mar 26 17:01:37 2008 UTC (16 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Wed Mar 26 2008 Shad L. Lords <slords@mail.com> 4.18.1-2
- Fix gettext strings returned by password checks [SME: 4104]

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm
2 --- e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm 2008-01-09 17:32:33.000000000 +1100
3 +++ mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/system_password.pm 2008-01-09 17:32:18.000000000 +1100
4 @@ -60,35 +60,6 @@
5 goto INITIAL_PASSWORD;
6 }
7
8 -
9 - ($rc, $choice2) = $console->password_page
10 - (
11 - title => gettext("Choose administrator password"),
12 - text => gettext("Please type your administrator password again to verify."),
13 - );
14 -
15 - unless ($rc == 0)
16 - {
17 - ($rc, $choice) = $console->message_page
18 - (
19 - title => gettext("Administrator password not set"),
20 - text => gettext("Sorry, you must set the administrator password now."),
21 - );
22 -
23 - goto INITIAL_PASSWORD;
24 - }
25 -
26 - if ($choice1 ne $choice2)
27 - {
28 - ($rc, $choice) = $console->message_page
29 - (
30 - title => gettext("Passwords do not match"),
31 - text => gettext("The two passwords did not match"),
32 - );
33 -
34 - goto INITIAL_PASSWORD;
35 - }
36 -
37 use Crypt::Cracklib;
38
39 #--------------------------------------------------------
40 @@ -133,6 +104,34 @@
41 goto INITIAL_PASSWORD if ($rc == 0);
42 }
43
44 + ($rc, $choice2) = $console->password_page
45 + (
46 + title => gettext("Choose administrator password"),
47 + text => gettext("Please type your administrator password again to verify."),
48 + );
49 +
50 + unless ($rc == 0)
51 + {
52 + ($rc, $choice) = $console->message_page
53 + (
54 + title => gettext("Administrator password not set"),
55 + text => gettext("Sorry, you must set the administrator password now."),
56 + );
57 +
58 + goto INITIAL_PASSWORD;
59 + }
60 +
61 + if ($choice1 ne $choice2)
62 + {
63 + ($rc, $choice) = $console->message_page
64 + (
65 + title => gettext("Passwords do not match"),
66 + text => gettext("The two passwords did not match"),
67 + );
68 +
69 + goto INITIAL_PASSWORD;
70 + }
71 +
72 #--------------------------------------------------
73 # Set system password
74 #--------------------------------------------------

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