Re: Error assigning master socket: Too many open files

From: Peter Edwards <peter.edwards_at_openet-telecom.com>
Date: Wed, 22 Oct 2003 15:30:41 +0100
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_at_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
_at__at_ -25,8 +25,8 _at__at_
 /***********************************************************/
 
 #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>
Received on Wed Oct 22 2003 - 05:30:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:26 UTC