diff src/dnsbl.cpp @ 43:acbe44bbba22

seems to drop root privs ok now
author carl
date Mon, 05 Jul 2004 22:24:22 -0700
parents afcf403709ef
children 6b79046b18c2
line wrap: on
line diff
--- a/src/dnsbl.cpp	Mon Jul 05 13:09:44 2004 -0700
+++ b/src/dnsbl.cpp	Mon Jul 05 22:24:22 2004 -0700
@@ -1289,13 +1289,13 @@
 static void setup_socket(char *sock);
 static void setup_socket(char *sock) {
     unlink(sock);
-    sockaddr_un addr;
-    memset(&addr, '\0', sizeof addr);
-    addr.sun_family = AF_UNIX;
-    strncpy(addr.sun_path, sock, sizeof(addr.sun_path)-1);
-    int s = socket(AF_UNIX, SOCK_STREAM, 0);
-    bind(s, (sockaddr*)&addr, sizeof(addr));
-    close(s);
+    // sockaddr_un addr;
+    // memset(&addr, '\0', sizeof addr);
+    // addr.sun_family = AF_UNIX;
+    // strncpy(addr.sun_path, sock, sizeof(addr.sun_path)-1);
+    // int s = socket(AF_UNIX, SOCK_STREAM, 0);
+    // bind(s, (sockaddr*)&addr, sizeof(addr));
+    // close(s);
 }