Error assigning master socket: Too many open files

Peter Edwards peter.edwards at openet-telecom.com
Wed Oct 22 07:30:50 PDT 2003


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
@@ -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>




More information about the freebsd-current mailing list