From owner-freebsd-current@FreeBSD.ORG Wed Oct 22 07:30:50 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6905416A4B3; Wed, 22 Oct 2003 07:30:50 -0700 (PDT) Received: from sweeper.openet-telecom.com (mail.openet-telecom.com [62.17.151.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CBEB43FA3; Wed, 22 Oct 2003 07:30:48 -0700 (PDT) (envelope-from peter.edwards@openet-telecom.com) Received: from mail.openet-telecom.com (unverified) by sweeper.openet-telecom.com ; Wed, 22 Oct 2003 15:31:05 +0100 Received: from openet-telecom.com (10.0.0.40) by mail.openet-telecom.com (NPlex 6.5.027) (authenticated as peter.edwards@openet-telecom.com) id 3F6FE91700018E56; Wed, 22 Oct 2003 15:26:39 +0100 Message-ID: <3F969491.5000405@openet-telecom.com> Date: Wed, 22 Oct 2003 15:30:41 +0100 From: Peter Edwards User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030825 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andreas Klemm References: <20031022113039.GA10053@titan.klemm.apsfilter.org> In-Reply-To: <20031022113039.GA10053@titan.klemm.apsfilter.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: Error assigning master socket: Too many open files X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2003 14:30:50 -0000 Andreas Klemm wrote: >Hi, > >Urgend question, wanna help a collegue, who secured a router, >but trying to scan ports fails with -current. > >I don't want to blame anybody, I know what the policy of current >is. If I can't get quick help on this I use a Windows tool, >no problem. I only want to save me the work to install this Win tool >and I think its interesting, to find out, that there might be >a problem. > >The machine was freshly booted .... >Is there a workaround ? > >root@titan[ttyp2]{84} /usr/ports/security/portscanner/work/PortScanner-1.2 portscanner -vv -v -v -b 1 -e 6 xx.xxx.xxx.xx >xx.xxx.xx.xx >Error assigning master socket: Too many open files >Exit 255 > The patch applied by the port appears bogus. It adds braces around an "if" that stops it executing the way it was intended. I've a sneaking suspicion that the braces were added for "clarity", but the indentation in the original file is so badly off that the terminating brace was put in the wrong place. Try replacing patch-ab with this: --- portscanner.c.orig Wed Aug 19 18:37:44 1998 +++ portscanner.c Wed Oct 22 15:28:05 2003 @@ -25,8 +25,8 @@ /***********************************************************/ #include -#include #include +#include #include #include #include