1 |
unnilennium |
1.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 |
|
|
|