/[smecontribs]/rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts-2.6-patch3.patch
ViewVC logotype

Contents of /rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts-2.6-patch3.patch

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


Revision 1.3 - (show annotations) (download)
Tue Nov 25 16:20:21 2008 UTC (15 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-denyhosts-2_6-26_el4_sme, smeserver-denyhosts-2_6-16_el4_sme, smeserver-denyhosts-2_6-18_el4_sme, smeserver-denyhosts-2_6-15_el4_sme, smeserver-denyhosts-2_6-24_el4_sme, smeserver-denyhosts-2_6-23_el4_sme, smeserver-denyhosts-2_6-17_el4_sme, HEAD
Changes since 1.2: +0 -0 lines
Restore

1 --- smeserver-denyhosts-2.6/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/denyhosts.patch3 2008-04-24 04:22:55.000000000 +0200
2 +++ smeserver-denyhosts-2.6/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/denyhosts 2008-04-24 05:33:40.000000000 +0200
3 @@ -62,5 +62,9 @@
4 <entry>
5 <base>DISABLED</base>
6 <trans>Disabled</trans>
7 - </entry>
8 + </entry>
9 + <entry>
10 + <base>ERROR_STOPPING</base>
11 + <trans>Error while trying to stop service</trans>
12 + </entry>
13 </lexicon>
14 --- smeserver-denyhosts-2.6/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/denyhosts.pm.patch3 2008-04-22 19:56:06.000000000 +0200
15 +++ smeserver-denyhosts-2.6/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/denyhosts.pm 2008-04-24 05:31:40.000000000 +0200
16 @@ -230,13 +230,22 @@
17 $rec->set_prop('status', $status) if $rec;
18 return '' unless $fm->add_new_valid_from;
19 return '' unless $fm->remove_valid_from;
20 -
21 +
22 unless ( system( "/sbin/e-smith/signal-event", "conf-denyhosts" ) == 0 )
23 {
24 - $fm->error('ERROR_UPDATING');
25 - return undef;
26 + $fm->error('ERROR_UPDATING');
27 + return undef;
28 }
29 -
30 +
31 + if ( $rec->prop('status') eq 'disabled' )
32 + {
33 + unless ( `/etc/init.d/denyhosts stop` )
34 + {
35 + $fm->error('ERROR_STOPPING');
36 + return undef;
37 + }
38 + }
39 +
40 $fm->success('SUCCESS');
41 }
42

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