Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2012 21:25:22 +0800 (CST)
From:      Lung-Pin Chang <changlp@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sbz@FreeBSD.org
Subject:   ports/171117: [PATCH] security/knock: Duplicated flags
Message-ID:  <20120827132522.4C8C29B41F@Archon.iamben.csie.net>
Resent-Message-ID: <201208271330.q7RDUIjg012247@freefall.freebsd.org>

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

>Number:         171117
>Category:       ports
>Synopsis:       [PATCH] security/knock: Duplicated flags
>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:   Mon Aug 27 13:30:16 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Lung-Pin Chang
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD Archon.iamben.csie.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:
/etc/rc.subr already loads ${name}_flags as part of command line arguments.

Putting $knockd_flags into $command_args causes the flags to be duplicated twice.

e.g.
root         75681   0.0  0.0  12324   1064  ??  Rs    9:18PM     0:00.88 /usr/local/bin/knockd -d -d 



Port maintainer (sbz@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- knock-0.5_1,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/security/knock/Makefile /home/iamben/tmp/ports/security/knock/Makefile
--- /usr/ports/security/knock/Makefile	2012-08-06 07:19:36.000000000 +0800
+++ /home/iamben/tmp/ports/security/knock/Makefile	2012-08-27 21:17:31.089871996 +0800
@@ -7,6 +7,7 @@
 
 PORTNAME=	knock
 PORTVERSION=	0.5
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	security
 MASTER_SITES=	http://www.zeroflux.org/proj/knock/files/ \
diff -ruN --exclude=CVS /usr/ports/security/knock/files/knockd.in /home/iamben/tmp/ports/security/knock/files/knockd.in
--- /usr/ports/security/knock/files/knockd.in	2012-08-06 07:19:36.000000000 +0800
+++ /home/iamben/tmp/ports/security/knock/files/knockd.in	2012-08-27 21:17:16.335874460 +0800
@@ -27,7 +27,6 @@
 : ${knockd_flags="-d"}
 
 command="%%PREFIX%%/bin/knockd"
-command_args=${knockd_flags}
 pidfile="/var/run/knockd.pid"
 required_files=${knockd_conf}
 
--- knock-0.5_1,1.patch ends here ---

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



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