Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131034 - denyhosts 2.4 has a bug
Summary: denyhosts 2.4 has a bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benjamin Smee (strerror) (RETIRED)
URL: http://www.mail-archive.com/denyhosts...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 15:20 UTC by Bel Zébute
Modified: 2006-04-27 15:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bel Zébute 2006-04-23 15:20:08 UTC
The link in the URL contains what I experimented and how I solved it (2.4b)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 15:21:37 UTC
Don't refer to external links for bug description. If makes searching for duplicates completely useless.
Comment 2 Bel Zébute 2006-04-23 15:35:18 UTC
If this is fixed quickly, there should not be any dupplicates.

The problem has been fixed upstream with version 2.b.

-------------------
 # /etc/init.d/denyhosts start
 * Caching service dependencies ...                                                                                                                    [ ok ] * Starting DenyHosts daemon ...
Traceback (most recent call last):
  File "/usr/bin/denyhosts", line 164, in ?
    first_time, noemail, daemon)
  File "/usr/lib/python2.4/site-packages/DenyHosts/deny_hosts.py", line 82, in __init__
    offset = self.process_log(logfile, last_offset)
  File "/usr/lib/python2.4/site-packages/DenyHosts/deny_hosts.py", line 423, in process_log
    login_attempt.add(user, host, success, invalid)
  File "/usr/lib/python2.4/site-packages/DenyHosts/loginattempt.py", line 106, in add
    elif user in __restricted:
NameError: global name '_LoginAttempt__restricted' is not defined

DenyHosts exited abnormally
-------------------

The quick fix is to edit the ebuild and add a "b" to the my_P variable like this:

my_P="${my_PN}-${PV}b"

digest and re-emerge.

Now stop bugging me with bureaucraties.
Comment 3 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-04-27 15:37:22 UTC
in cvs, thanks for reporting