rpms/denyhosts/devel denyhosts-2.6-commandlinesync.patch, NONE, 1.1 denyhosts.spec, 1.52, 1.53

Jason ティビツ tibbs at fedoraproject.org
Fri Nov 7 22:21:14 UTC 2008


Author: tibbs

Update of /cvs/extras/rpms/denyhosts/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6333

Modified Files:
	denyhosts.spec 
Added Files:
	denyhosts-2.6-commandlinesync.patch 
Log Message:
* Fri Nov 07 2008 Jason L Tibbitts III <tibbs at math.uh.edu> - 2.6-14
- Add patch from upstream to fix command line --sync.


denyhosts-2.6-commandlinesync.patch:

--- NEW FILE denyhosts-2.6-commandlinesync.patch ---
diff -up DenyHosts-2.6/denyhosts.py.orig DenyHosts-2.6/denyhosts.py
--- DenyHosts-2.6/denyhosts.py.orig	2008-11-07 16:10:06.000000000 -0600
+++ DenyHosts-2.6/denyhosts.py	2008-11-07 16:11:11.000000000 -0600
@@ -17,6 +17,7 @@ from DenyHosts.denyfileutil import Purge
 from DenyHosts.constants import *
 from DenyHosts.sync import Sync
 
+info = logging.getLogger("denyhosts").info
 #################################################################################
 
 
@@ -186,8 +187,8 @@ if __name__ == '__main__':
                 new_hosts = sync.receive_new_hosts()
                 if new_hosts:
                     info("received new hosts: %s", str(new_hosts))
-                    sync.get_denied_hosts()
-                    sync.update_hosts_deny(new_hosts)
+                    dh.get_denied_hosts()
+                    dh.update_hosts_deny(new_hosts)
             sync.xmlrpc_disconnect()
         except Exception, e:
             lock_file.remove()


Index: denyhosts.spec
===================================================================
RCS file: /cvs/extras/rpms/denyhosts/devel/denyhosts.spec,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- denyhosts.spec	22 Sep 2008 18:27:29 -0000	1.52
+++ denyhosts.spec	7 Nov 2008 22:20:43 -0000	1.53
@@ -1,6 +1,6 @@
 Name:       denyhosts
 Version:    2.6
-Release:    13%{?dist}
+Release:    14%{?dist}
 Summary:    A script to help thwart ssh server attacks
 
 Group:      Applications/System
@@ -18,6 +18,7 @@
 Patch1:     denyhosts-2.4-setup.patch
 Patch2:     denyhosts-2.6-daemon-control.patch
 Patch3:     denyhosts-2.6-defconffile.patch
+Patch4:     denyhosts-2.6-commandlinesync.patch
 # Patch10 is a security fix
 Patch10:    denyhosts-2.6-regex.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -45,6 +46,7 @@
 %patch1 -p0 -b .setup
 %patch2 -p0 -b .daemon-control
 %patch3 -p0 -b .defconffile
+%patch4 -p1 -b .commandlinesync
 %patch10 -p1 -b .regex
 
 cp %{SOURCE6} .
@@ -161,6 +163,9 @@
 
 
 %changelog
+* Fri Nov 07 2008 Jason L Tibbitts III <tibbs at math.uh.edu> - 2.6-14
+- Add patch from upstream to fix command line --sync.
+
 * Mon Sep 22 2008 Jason L Tibbitts III <tibbs at math.uh.edu> - 2.6-13
 - Add plugin to restore file contexts after purging.
 




More information about the fedora-extras-commits mailing list