ports/146073: [patch] net/throttled replace ${SYSCTL} with /sbin/sysctl

Alex Kozlov spam at rm-rf.kiev.ua
Tue Apr 27 01:00:09 UTC 2010


>Number:         146073
>Category:       ports
>Synopsis:       [patch] net/throttled replace ${SYSCTL} with /sbin/sysctl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 27 01:00:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kozlov
>Release:        RELENG_8
>Organization:
private
>Environment:
>Description:
Replace ${SYSCTL} with /sbin/sysctl to make possible to remove SYSCTL* variables from /etc/rc.subr.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: ports/net/throttled/files/throttled.in
@@ -16,7 +16,7 @@
 
 throttled_precmd()
 {
-	if ! ${SYSCTL} net.inet.ip.fw.enable > /dev/null 2>&1; then
+	if ! /sbin/sysctl net.inet.ip.fw.enable > /dev/null 2>&1; then
 		warn "IPFW must be enabled"
 		return 1
 	fi


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



More information about the freebsd-ports-bugs mailing list