Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2003 15:30:41 +0100
From:      Peter Edwards <peter.edwards@openet-telecom.com>
To:        Andreas Klemm <andreas@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: Error assigning master socket: Too many open files
Message-ID:  <3F969491.5000405@openet-telecom.com>
In-Reply-To: <20031022113039.GA10053@titan.klemm.apsfilter.org>
References:  <20031022113039.GA10053@titan.klemm.apsfilter.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
-#include <sys/socket.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
 #include <unistd.h>
 #include <netdb.h>




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