[Toybox] [PATCH] netcat: Add UNIX domain socket support (-U)

Rob Landley rob at landley.net
Mon Jul 1 12:59:29 PDT 2019


On 7/1/19 2:34 PM, Tom Cherry via Toybox wrote:
> Other implementations of netcat support UNIX domain sockets via -U, so
> this change adds it to toybox too.

I don't understand this bit?

@@ -136,7 +177,7 @@ void netcat_main(void)

       do {
         child = 0;
-        in1 = out2 = accept(sockfd, (struct sockaddr *)address, &len);
+        in1 = out2 = accept(sockfd, NULL, NULL);
         if (in1<0) perror_exit("accept");

Rob



More information about the Toybox mailing list