diff -cr ../ircu2.10.06/config/config-sh.in ../ircu2.10.06-2/config/config-sh.in *** ../ircu2.10.06/config/config-sh.in Mon Jul 5 16:02:30 1999 --- ../ircu2.10.06-2/config/config-sh.in Mon Jul 5 15:49:59 1999 *************** *** 369,374 **** --- 369,378 ---- fi bool 'XMODE Networking - ESNET' XMODE_ESNET y bool 'ESNET Distributed DataBase Support - ESNET' DB_ESNET y + if [ "$DB_ESNET" = "y" ]; then + eval DBPATH_DEFAULT="${DPATH}/database" + string 'Directory where distributed database resides - ESNET' DBPATH $DBPATH_DEFAULT + fi int 'Max auto connects per class (1!)' MAXIMUM_LINKS 1 echo '* Never define this on a production server:' bool 'Enable message logging' MSGLOG_ENABLED Only in ../ircu2.10.06-2/config: config.cache Only in ../ircu2.10.06-2/config: config.log diff -cr ../ircu2.10.06/config/gen.ircd.Makefile ../ircu2.10.06-2/config/gen.ircd.Makefile *** ../ircu2.10.06/config/gen.ircd.Makefile Wed Sep 24 02:01:24 1997 --- ../ircu2.10.06-2/config/gen.ircd.Makefile Mon Jul 5 15:50:31 1999 *************** *** 15,20 **** --- 15,21 ---- -e "s:^DPATH=.*:DPATH=$DPATH:" \ -e "s:^MPATH=.*:MPATH=$MPATH:" \ -e "s:^RPATH=.*:RPATH=$RPATH:" \ + -e "s:^DBPATH=.*:DBPATH=$DBPATH:" \ -e "s:^INSTALL *= *\.\..*:INSTALL=../config/install-sh -c:" \ ../ircd/Makefile.tmp > ../ircd/Makefile $RM -f ../ircd/Makefile.tmp diff -cr ../ircu2.10.06/doc/Configure.help ../ircu2.10.06-2/doc/Configure.help *** ../ircu2.10.06/doc/Configure.help Mon Jul 5 16:02:30 1999 --- ../ircu2.10.06-2/doc/Configure.help Mon Jul 5 15:51:47 1999 *************** *** 876,881 **** --- 876,885 ---- created in IRCd home directory to support nick and channel registration, etc. + Directory where distributed database resides - ESNET + DBPATH + Path to the Distributed Database Directory. + Allow local opers to use the REHASH command LOCOP_REHASH Allows a local operator (defined by a lowercase o:line in ircd.conf) diff -cr ../ircu2.10.06/ircd/Makefile.in ../ircu2.10.06-2/ircd/Makefile.in *** ../ircu2.10.06/ircd/Makefile.in Mon Jul 5 16:02:28 1999 --- ../ircu2.10.06-2/ircd/Makefile.in Mon Jul 5 15:54:20 1999 *************** *** 48,53 **** --- 48,54 ---- DPATH= MPATH= RPATH= + DBPATH= CC= CFLAGS= *************** *** 111,120 **** print $$(NF) }'` > /tmp/ircd.tag; @echo "Installing new ircd as ${BINDIR}/ircd.`cat /tmp/ircd.tag` :" ${INSTALL} -m ${IRCDMODE} -o ${IRCDOWN} -g ${IRCDGRP} ircd ${BINDIR}/ircd.`cat /tmp/ircd.tag` ! ${TOUCH} ${DPATH}/database ! ${CHMOD} 600 ${DPATH}/database ! ${CHOWN} ${IRCDOWN} ${DPATH}/database ! ${CHGRP} ${IRCDGRP} ${DPATH}/database @( cd ${BINDIR}; \ ${RM} -f ${SYMLINK}; \ ${LN_S} ircd.`cat /tmp/ircd.tag` ${SYMLINK}; ) --- 112,129 ---- print $$(NF) }'` > /tmp/ircd.tag; @echo "Installing new ircd as ${BINDIR}/ircd.`cat /tmp/ircd.tag` :" ${INSTALL} -m ${IRCDMODE} -o ${IRCDOWN} -g ${IRCDGRP} ircd ${BINDIR}/ircd.`cat /tmp/ircd.tag` ! if [ -f ${DPATH}/database ]; then ${RM} ${DPATH}/database; fi ! if [ ! -d ${DBPATH} ]; then ${MKDIR} ${DBPATH}; fi ! ${CHMOD} 700 ${DBPATH} ! ${CHOWN} ${IRCDOWN} ${DBPATH} ! ${CHGRP} ${IRCDGRP} ${DBPATH} ! for i in a b c d e f g h i j k l m n o p q r s t u v w x y z ; \ ! do \ ! ${TOUCH} ${DBPATH}/tabla.$$i ; \ ! done ! ${CHMOD} 600 ${DBPATH}/* ! ${CHOWN} ${IRCDOWN} ${DBPATH}/* ! ${CHGRP} ${IRCDGRP} ${DBPATH}/* @( cd ${BINDIR}; \ ${RM} -f ${SYMLINK}; \ ${LN_S} ircd.`cat /tmp/ircd.tag` ${SYMLINK}; ) diff -cr ../ircu2.10.06/ircd/s_debug.c ../ircu2.10.06-2/ircd/s_debug.c *** ../ircu2.10.06/ircd/s_debug.c Mon Jul 5 16:02:32 1999 --- ../ircu2.10.06-2/ircd/s_debug.c Mon Jul 5 15:57:00 1999 *************** *** 194,200 **** '-', #endif #endif ! 'D','B','8', #ifdef DB_ESNET '+', #else --- 194,200 ---- '-', #endif #endif ! 'D','B','9', #ifdef DB_ESNET '+', #else diff -cr ../ircu2.10.06/ircd/s_serv.c ../ircu2.10.06-2/ircd/s_serv.c *** ../ircu2.10.06/ircd/s_serv.c Mon Jul 5 16:02:32 1999 --- ../ircu2.10.06-2/ircd/s_serv.c Mon Jul 5 15:58:40 1999 *************** *** 1453,1462 **** { int handle; int cont; *buf='\0'; alarm(3); ! handle=open("database", O_RDONLY, S_IRUSR | S_IWUSR); alarm(0); if(handle==-1) return 0; do { --- 1453,1464 ---- { int handle; int cont; + char path[1024]; *buf='\0'; alarm(3); ! sprintf_irc(path,"%s/tabla.%c",DBPATH,ESNET_NICKDB); ! handle=open(path, O_RDONLY, S_IRUSR | S_IWUSR); alarm(0); if(handle==-1) return 0; do { *************** *** 1579,1584 **** --- 1581,1587 ---- aClient *acptr; Dlink *lp; char db_buf[1024]; + char path[1024]; int db_file; int es_hub=0; *************** *** 1651,1657 **** } if(db