Przeglądaj źródła

* Don't open an identd socket unless running as root or on cygwin

Bryan Drewery 16 lat temu
rodzic
commit
0a1d4cbcc7
2 zmienionych plików z 5 dodań i 0 usunięć
  1. 1 0
      doc/UPDATES
  2. 4 0
      src/net.c

+ 1 - 0
doc/UPDATES

@@ -79,6 +79,7 @@
   * If a bot devoices a user in a +voice channel, the +y bot will no longer enforce this.
   * Fix cmd_botjoin not properly setting up addedby/addedts for the channel.
   * Fix bots never timing out when connecting to servers sometimes.
+  * Bot no longer tries opening an identd socket unless it's root or running on cygwin.
 * Misc changes
   * Cleanup DCC/Telnet listening so bot only listens on IPV6 if it was specifically given an IPV6 IP.
   * CTCP bot CHAT will no longer work if the bot does not have an IPV4 IP set.

+ 4 - 0
src/net.c

@@ -579,6 +579,10 @@ int open_telnet_raw(int sock, const char *ipIn, port_t sport, bool proxy_on, int
     socklist[i].port = port;
   }
 
+#ifndef CYGWIN_HACKS
+  // Only open identd socket if running as root or on cygwin.
+  if (!conf.uid)
+#endif
   if (identd && sport) //Only open identd if not a unix domain socket
     identd_open(myipstr(is_resolved), ipIn, identd);