From nobody@FreeBSD.org  Wed Feb 27 07:52:12 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id B53DD76A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2013 07:52:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id A5FADF16
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2013 07:52:12 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1R7qBgV011499
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2013 07:52:11 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r1R7qBTK011493;
	Wed, 27 Feb 2013 07:52:11 GMT
	(envelope-from nobody)
Message-Id: <201302270752.r1R7qBTK011493@red.freebsd.org>
Date: Wed, 27 Feb 2013 07:52:11 GMT
From: Roman <sylvian@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: SAMS can not use the mask /32, with authorization by IP address.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176468
>Category:       ports
>Synopsis:       www/sams can not use the mask /32, with authorization by IP address.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    marino
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 08:00:00 UTC 2013
>Closed-Date:    Mon Apr 21 13:31:47 UTC 2014
>Last-Modified:  Mon Apr 21 13:31:47 UTC 2014
>Originator:     Roman
>Release:        9.1
>Organization:
>Environment:
9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
SQUID, starting with version 3.1, requires CIDR masks in the configuration files. SAMS does not work with this type of mask.
>How-To-Repeat:

>Fix:
Edit samsdaemon.c and recompile it

=======================
diff samsdaemon.c_orig samsdaemon.c
1957c1957
<                 if((strcmp(row[1],"ip")==0||strlen(row[1])==0)&&RREJIK==0&&strlen(row2[11])>4&&strlen(row2[12])>4)
---
>                 if((strcmp(row[1],"ip")==0||strlen(row[1])==0)&&RREJIK==0&&strlen(row2[11])>4&&strlen(row2[12])>1)
1961c1961
<                   if(strlen(row2[11]) > 4 && strlen(row2[12]) > 4) {
---
>                   if(strlen(row2[11]) > 4 && strlen(row2[12]) > 1) {
=======================

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-www->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Feb 27 08:06:28 UTC 2013 
Responsible-Changed-Why:  
ports PR.  The GNATS 'www' category is only for problems affecting the 
FreeBSD website. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176468 
Responsible-Changed-From-To: freebsd-ports-bugs->marino 
Responsible-Changed-By: marino 
Responsible-Changed-When: Mon Apr 21 08:10:09 UTC 2014 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176468 
State-Changed-From-To: open->closed 
State-Changed-By: marino 
State-Changed-When: Mon Apr 21 13:31:45 UTC 2014 
State-Changed-Why:  
This port will be removed as it requires PHP4, gone for 2 years now 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176468 
>Unformatted:
