Author: Isomer / ZenShadow
authorPerry Lorier <isomer@undernet.org>
Sun, 30 Apr 2000 10:22:15 +0000 (10:22 +0000)
committerPerry Lorier <isomer@undernet.org>
Sun, 30 Apr 2000 10:22:15 +0000 (10:22 +0000)
Log message:

I fixed some minor bugs
ZenShadow cleaned up some stuff.

It's a bug, blame ZenShadow.
If it's a welcome feature I'll take the credit.  <grin!>

Thanks :)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@220 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
TODO
config/config-sh.in
config/gen.ircd.Makefile
include/supported.h
ircd/Makefile.in
ircd/ircd.c
ircd/ircd_signal.c
ircd/s_misc.c
ircd/s_user.c

index a7829800cebfd59db4a2fe198b8494a41d5aa873..fc00486cd9cb32940dd43af6a1240f53831feb24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,26 @@
-2000-04-30  Steven M. Doyle <grep@doyle.net>
-        * config/config-sh.in: Fix for CHROOT
-       * ircd/ircd.c: General Cleanup
+2000-04-30  Perry Lorier <isomer@coders.net>
+       * config/config-sh.in: Fix for CONNEXIT
+       * ircd/s_{user,misc}.c: Fix for CONNEXIT
+
+2000-04-30  Steven M. Doyle <steven@doyle.net>
+       * ircd/ircd.c
+         - general cleanups and readability enhancements
+         - rewrite of setuid/chroot code.
+         - server will no longer run as root
+         - -DPROFIL compile option removed
+       * config/config-sh.in
+         - Fixed up chroot compile options
+         - Added options for debug and profile compiles
+       * config/gen.ircd.Makefile
+         - Support for new debug/profile options
+       * ircd/Makefile.in
+         - Support for new debug/profile options
+       * ircd/ircd_signal.c
+         - Removed -DPROFIL
 
 2000-04-30  Perry Lorier <isomer@coders.net>
        * ircd/s_bsd.c: Sigh. :)
 #
 # ChangeLog for ircu2.10.11
 #
-# $Id: ChangeLog,v 1.117 2000-04-30 06:44:27 isomer Exp $
+# $Id: ChangeLog,v 1.118 2000-04-30 10:22:14 isomer Exp $
 #
 # Insert new changes at beginning of the change list.
 #
diff --git a/TODO b/TODO
index 3dfdcfe0fe1b63f45c3400db9be3ea52b5ccd71d..105739ccd6d34300c21e51bae262f6bc916c62fc 100644 (file)
--- a/TODO
+++ b/TODO
@@ -36,6 +36,4 @@ Medium Priority:
 * Document undernet protocol as it is used in
   doc/rfc1459.unet
 * Finish tokenization.
-* Allow for /WHO by IP address. (for finding who's port scanning you
-  for example).  Suggested by Nuke
 
index f2bc5e9a9d953435069066b9bf418b39f8d04c6b..efbb9bad49ab57fd33e553010c0ab64681229e09 100644 (file)
@@ -103,6 +103,16 @@ comment 'Compile stuff'
     LIBS=none
   fi
   string 'Which extra libraries do you need [none]' IRCDLIBS "$LIBS"
+  bool 'Generate debug symbols?' DEBUGSYMBOLS "y"
+  bool 'Compile in profiling support (gcc and maybe SUNpro)?' IRCUPROFILE "n"
+  unset ZSTEMP
+  if [ "$DEBUGSYMBOLS" = "y" ] ; then
+    ZSTEMP="-g"
+  fi
+  if [ "$IRCUPROFILE" = "y" ] ; then
+    ZSTEMP="-pg $ZSTEMP"
+  fi
+  define_string DEBUGFLAGS "$ZSTEMP"
   eval bindir="$bindir"
   string 'In which directory should I install the ircd binary' BINDIR $bindir
   if [ ! -d "$BINDIR" ]; then
@@ -311,10 +321,6 @@ comment 'Configuration'
   int 'Maximum number of network connections (23 - (FD_SETSIZE-4))' MAXCONNECTIONS 252
   int 'Default port for connections to other servers' SERVER_PORT 4400
   int 'Nickname history length' NICKNAMEHISTORYLENGTH 800
-  bool 'Allow Opers to see (dis)connects of local clients' ALLOW_SNO_CONNEXIT
-  if [ "$ALLOW_SNO_CONNEXIT" = "y" ]; then
-    bool 'Show IP address in client connection notices' SNO_CONNEXIT_IP
-  fi
   bool 'Do you want to use R: lines in your configuration file' R_LINES
   if [ "$R_LINES" = "y" ]; then
     bool 'Process R: lines every rehash' R_LINES_REHASH y
index f6db89c2cc36097989276f90cda90968aefa8a22..a4ee7ad6503d7dd28f2ad715588eae4313a237f6 100644 (file)
@@ -3,6 +3,7 @@
 mv ../ircd/Makefile ../ircd/Makefile.tmp
 sed -e "s:^CC=.*:CC=$CC:" \
     -e "s:^CFLAGS=.*:CFLAGS=$CFLAGS:" \
+    -e "s:^DEBUGFLAGS=.*:DEBUGFLAGS=$DEBUGFLAGS:" \
     -e "s:^CPPFLAGS=.*:CPPFLAGS=$CPPFLAGS:" \
     -e "s:^LDFLAGS=.*:LDFLAGS=$LDFLAGS:" \
     -e "s:^IRCDLIBS=.*:IRCDLIBS=$IRCDLIBS:" \
index 77b369c302ee7af12ab04db24b1a7d7fff250ab8..3e91148f7f8620fe3d06cad56ff1f7b233ee414a 100644 (file)
@@ -48,7 +48,7 @@
                 " KICKLEN=%i" \
                 " CHANTYPES=%s"
                  
-#define FEATURESVALUES 15,MAXMODEPARAMS,MAXCHANNELSPERUSER,MAXBANS, \
+#define FEATURESVALUES MAXSILES,MAXMODEPARAMS,MAXCHANNELSPERUSER,MAXBANS, \
         NICKLEN,TOPICLEN,TOPICLEN,"+#&"
 
 #endif /* INCLUDED_supported_h */
index 189cd0a8c2cce0620d962982ed2ad604d2d145b9..9944fc08b15c1f22c5f6262d7f70a87bac831356 100644 (file)
@@ -53,12 +53,16 @@ RPATH=
 CC=
 CFLAGS=
 CPPFLAGS=
+DEBUGFLAGS=
 LDFLAGS=
 IRCDLIBS=
 
 #### End of system configuration section. ####
 PURIFY =
 
+CFLAGS += $(DEBUGFLAGS)
+LDFLAGS += $(DEBUGFLAGS)
+
 SRC = \
        IPcheck.c \
        channel.c \
index ad4ba77559b0c9184166eca8ac1b37453a299d81..6012ea5e11a02b1714ea6f614b01643d9c5e4c2b 100644 (file)
  *--------------------------------------------------------------------------*/
 extern void init_counters(void);
 
-#ifdef PROFIL
-extern etext(void);
-#endif
-
-
 /*----------------------------------------------------------------------------
  * Constants / Enums
  *--------------------------------------------------------------------------*/
@@ -608,12 +603,6 @@ static int set_userid_if_needed(void) {
  *        long and ugly control paths...  -smd
  *--------------------------------------------------------------------------*/
 int main(int argc, char **argv) {
-#ifdef PROFIL
-  monstartup(0, etext);
-  moncontrol(1);
-  signal(SIGUSR1, s_monitor);
-#endif
-
   CurrentTime = time(NULL);
 
   thisServer.argc = argc;
@@ -720,3 +709,4 @@ int main(int argc, char **argv) {
   return 0;
 }
 
+
index 04e25cda1347c23d08b4ca58fdac8ff269dfa920..2ee429b8aaf2659d81cddbcad2e8e234c71ece67 100644 (file)
@@ -29,17 +29,6 @@ static struct tag_SignalCounter {
   unsigned int hup;
 } SignalCounter;
 
-#ifdef PROFIL
-void s_monitor(int sig)
-{
-  static int mon = 0;
-
-  moncontrol(mon);
-  mon = 1 - mon;
-}
-
-#endif
-
 void sigalrm_handler(int sig)
 {
   ++SignalCounter.alrm;
index c5d26f4ee907ed7cbfd81963289aa912b2eba896..a5b122c4ec276adb1e304015e3bcfd35b5260b16 100644 (file)
@@ -389,23 +389,6 @@ int exit_client(struct Client *cptr,    /* Connection being handled by
 
   if (MyConnect(victim)) {
     victim->flags |= FLAGS_CLOSING;
-#ifdef ALLOW_SNO_CONNEXIT
-#ifdef SNO_CONNEXIT_IP
-    if (IsUser(victim)) {
-      sendto_opmask_butone(0, SNO_CONNEXIT,
-                          "Client exiting: %s (%s@%s) [%s] [%s]",
-                          victim->name, victim->user->username,
-                          victim->user->host, comment,
-                          ircd_ntoa((const char *)&victim->ip));
-    }
-#else /* SNO_CONNEXIT_IP */
-    if (IsUser(victim)) {
-      sendto_opmask_butone(0, SNO_CONNEXIT, "Client exiting: %s (%s@%s) [%s]",
-                          victim->name, victim->user->username,
-                          victim->user->host, comment);
-    }
-#endif /* SNO_CONNEXIT_IP */
-#endif /* ALLOW_SNO_CONNEXIT */
     update_load();
 #ifdef FNAME_USERLOG
     on_for = CurrentTime - victim->firsttime;
index 17ebfb50bb278f12fb6ddbe050c3b2938767bac4..a7c0c03e7c150ae575ec68eb038b88db8f6f222c 100644 (file)
@@ -627,16 +627,6 @@ int register_user(struct Client *cptr, struct Client *sptr,
     nextping = CurrentTime;
     if (sptr->snomask & SNO_NOISY)
       set_snomask(sptr, sptr->snomask & SNO_NOISY, SNO_ADD);
-#ifdef ALLOW_SNO_CONNEXIT
-#ifdef SNO_CONNEXIT_IP
-    sendto_opmask_butone(0, SNO_CONNEXIT, "Client connecting: %s (%s@%s) "
-                        "[%s] {%d}", nick, user->username, user->host,
-                        cptr->sock_ip, get_client_class(sptr));
-#else /* SNO_CONNEXIT_IP */
-    sendto_opmask_butone(0, SNO_CONEXIT, "Client connecting: %s (%s@%s)",
-                        nick, user->username, user->host);
-#endif /* SNO_CONNEXIT_IP */
-#endif /* ALLOW_SNO_CONNEXIT */
     IPcheck_connect_succeeded(sptr);
   }
   else