Account Options

  1. Sign in
Google Groups Home
« Groups Home
ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frank Wall  
View profile  
 More options Jan 21 2010, 5:17 am
Newsgroups: lucky.freebsd.ports.bugs
From: Frank Wall <f...@moov.de>
Date: Thu, 21 Jan 2010 10:17:56 GMT
Local: Thurs, Jan 21 2010 5:17 am
Subject: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script

FreeBSD 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 09:43:46 UTC 2009     r...@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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ed...@freebsd.org  
View profile  
 More options Jan 21 2010, 5:20 am
Newsgroups: lucky.freebsd.ports.bugs
From: ed...@freebsd.org
Date: Thu, 21 Jan 2010 10:20:28 GMT
Local: Thurs, Jan 21 2010 5:20 am
Subject: Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
Synopsis: [PATCH] security/denyhosts: fix $command_interpreter in RC script

State-Changed-From-To: open->feedback
State-Changed-By: edwin
State-Changed-When: Thu Jan 21 10:20:28 UTC 2010
State-Changed-Why:
Awaiting maintainers feedback (via the GNATS Auto Assign Tool)

http://www.freebsd.org/cgi/query-pr.cgi?pr=143053


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Edwin Groothuis  
View profile  
 More options Jan 21 2010, 5:30 am
Newsgroups: lucky.freebsd.ports.bugs
From: Edwin Groothuis <ed...@freebsd.org>
Date: Thu, 21 Jan 2010 10:30:10 GMT
Local: Thurs, Jan 21 2010 5:30 am
Subject: Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
The following reply was made to PR ports/143053; it has been noted by GNATS.

From: Edwin Groothuis <ed...@FreeBSD.org>
To: janos.moha...@bsd.hu
Cc: bug-follo...@FreeBSD.org
Subject: Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
Date: Thu, 21 Jan 2010 10:20:26 UT

 Maintainer of security/denyhosts,

 Please note that PR ports/143053 has just been submitted.

 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.

 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/143053

 --
 Edwin Groothuis via the GNATS Auto Assign Tool
 ed...@FreeBSD.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Janos Mohacsi  
View profile  
 More options Jan 22 2010, 8:40 am
Newsgroups: lucky.freebsd.ports.bugs
From: Janos Mohacsi <moha...@niif.hu>
Date: Fri, 22 Jan 2010 13:40:03 GMT
Local: Fri, Jan 22 2010 8:40 am
Subject: Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
The following reply was made to PR ports/143053; it has been noted by GNATS.

From: Janos Mohacsi <moha...@niif.hu>
To: bug-follo...@FreeBSD.org, f...@moov.de
Cc: ed...@freebsd.org
Subject: Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter
 in RC script
Date: Fri, 22 Jan 2010 14:34:51 +0100

 This is a multi-part message in MIME format.
 --------------050506010403050007000802
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit

 It is more appropriate to use the current default python version instead
 of hard-coding the a particular version. See the attached patch.

 Best Regards,
                 Janos Mohacsi

 --------------050506010403050007000802
 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
  name="denyhosts.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="denyhosts.diff"

 diff -ruN denyhosts.orig/Makefile denyhosts/Makefile
 --- denyhosts.orig/Makefile    2009-08-25 16:24:44.000000000 +0200
 +++ denyhosts/Makefile 2010-01-22 14:30:50.000000000 +0100
 @@ -7,7 +7,7 @@

  PORTNAME=     denyhosts
  PORTVERSION=  2.6
 -PORTREVISION= 2
 +PORTREVISION= 3
  CATEGORIES=   security
  MASTER_SITES= SF
  DISTNAME=     DenyHosts-${PORTVERSION}
 @@ -21,6 +21,7 @@

  USE_RC_SUBR=  denyhosts
  SUB_FILES=    pkg-message
 +SUB_LIST=     PYTHONVER=${PYTHON_VERSION}

  PORTDOCS=     CHANGELOG.txt LICENSE.txt README.txt

 diff -ruN denyhosts.orig/files/denyhosts.in denyhosts/files/denyhosts.in
 --- denyhosts.orig/files/denyhosts.in  2006-05-20 01:47:45.000000000 +0200
 +++ denyhosts/files/denyhosts.in       2010-01-22 14:26:01.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/%%PYTHONVER%%"
  command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon"
  pidfile="/var/run/${name}.pid"

 --------------050506010403050007000802--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »