/[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.1 - (show annotations) (download)
Thu Apr 24 07:49:36 2008 UTC (16 years ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-denyhosts-2_6-7_el4_sme, smeserver-denyhosts-2_6-8_el4_sme, smeserver-denyhosts-2_6-13_el4_sme, smeserver-denyhosts-2_6-12_el4_sme, smeserver-denyhosts-2_6-14_el4_sme, smeserver-denyhosts-2_6-11_el4_sme
stop deamon bug

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