Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 2010 10:17:56 GMT
From:      Frank Wall <fw@moov.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
Message-ID:  <201001211017.o0LAHuGJ064621@www.freebsd.org>
Resent-Message-ID: <201001211020.o0LAKIGn049318@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         143053
>Category:       ports
>Synopsis:       [PATCH] security/denyhosts: fix $command_interpreter in RC script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 21 10:20:18 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Frank Wall
>Release:        7.1-RELEASE
>Organization:
>Environment:
FreeBSD 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 09:43:46 UTC 2009     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The RC script for security/denyhosts is outdated. The variable
$command_interpreter needs to be set to "/usr/local/bin/python2.6",
but it is set to "/usr/local/bin/python".
>How-To-Repeat:
1. install security/denyhosts
2. add denyhosts_enable="YES" to /etc/rc.conf
3. start denyhosts: /usr/local/etc/rc.d/denyhosts start
4. a warning message is shown:

/usr/local/etc/rc.d/denyhosts: WARNING: $command_interpreter /usr/local/bin/python != /usr/local/bin/python2.6

>Fix:
see attached patch file

Patch attached with submission follows:

--- files/denyhosts.in.orig	2006-05-20 01:47:45.000000000 +0200
+++ files/denyhosts.in	2010-01-21 11:11:38.000000000 +0100
@@ -12,7 +12,7 @@
 rcvar=${name}_enable
 
 command="%%PREFIX%%/bin/denyhosts.py"
-command_interpreter="/usr/local/bin/python"
+command_interpreter="/usr/local/bin/python2.6"
 command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon"
 pidfile="/var/run/${name}.pid"



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001211017.o0LAHuGJ064621>