aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c
Commit message (Expand)AuthorAgeFilesLines
* - Windows: fix MOTD file always showing a date of 1/1/1970, reported••• by maxarturo (#4102). Gravatar Bram Matthys2012-10-161-1/+1
* - Fix a few compiler warnings with some double-casting and another const. (#3...Gravatar binki2010-08-031-2/+1
* - Fix files::shortmotd to by accepted by unrealircd like the docs say it is.•••- Fix remote includes download handling which I broke for remote includes ;-). - Recursively add more consts. Gravatar binki2010-06-171-5/+5
* - Added error message for unknown directives in the "files" block•••- Remote MOTD support. Not adequately tested. Required restructuring of the asynchronous download callback and handler. - Added some consts throughout url.c, etc. - Fix segfault where the an include directive specifies a URL and cURL follows redirects, resulting in a different resultant URL. The remote includes code would look for the an include block using the resultant URL and assume that it would be found. The new code searches differently, has new checks, and ignores the resultant URL. - Removed duplicated m_motd() and friends that were both in modules and s_serv.c. The copies in s_serv.c (core) were overriding the in-module functions. Gravatar binki2010-06-161-4/+4
* - Fix -DDEFAULT_PERMISSIONS=0 support. Previously, support.c:unreal_copyfile(...Gravatar binki2010-05-051-1/+5
* - We now no longer treat \ (backslash) in *MOTD and RULES files as special.••• Previously this caused some really odd behavior. Backslashes are now treated as-is, so no special escaping is necessary. Reported by DelGurth (#0003002). - Removed old dgets() function Gravatar Bram Matthys2010-02-131-122/+0
* - Added special caching of remote includes. When a remote include fails to••• load (for example when the webserver is down), then the most recent version of that remote include will be used, and the ircd will still boot and be able to rehash. Even though this is quite a simple feature, it can make a key difference when deciding to roll out remote includes on your network. Previously, servers would be unable to boot or rehash when the webserver was down, which would be a big problem (often unacceptable). The latest version of fetched urls are cached in the cache/ directory as cache/<md5 hash of url>. Obviously, if there's no 'latest version' and an url fails, the ircd will still not be able to boot. This would be the case if you added or changed the path of a remote include and it's trying to fetch it for the first time. To disable this new behavior, check out REMOTEINC_SPECIALCACHE in include/config.h. Gravatar Bram Matthys2009-11-231-0/+18
* - #0003363 patched by adrianp, changing IRC_UID and IRC_GID into••• defines IRC_USER, IRC_GROUP which is a string specifiying what user name/ group name that should be changed into, instead of a hardcoded gid/uid. This should make it easier for packaged binary releases to work (even though this probably means Debian will take us in, ick .. Can't we pull a new fight with debian-legal again?) - #0003363 patched by adrianp, changing IRC_UID and IRC_GID into defines IRC_USER, IRC_GROUP which is a string specifiying what user name/ group name that should be changed into, instead of a hardcoded gid/uid. This should make it easier for packaged binary releases to work (even though this probably means Debian will take us in, ick .. Can't we pull a new fight with debian-legal again?) Gravatar stskeeps2007-06-171-2/+4
* - Fixed file descriptor leakage on rehash. This resulted in [number of module...••• file descriptors being leaked upon every /REHASH. So if you, for example, had 3 modules loaded and rehashed 30 times, it would cause the ircd to consume 60 useless file descriptors (which often means 60 less file descriptors being available to clients). Gravatar Bram Matthys2007-02-161-2/+1
* - loadmodule now reports proper errors when the actual file can't be found, i...••• it on the temp file, reported in #3015. (aquanight backport) Gravatar Bram Matthys2006-11-111-1/+15
* - Removed all old resolver code and switched over to c-ares (+our caching rou...••• This should get rid of some annoying untracable (and usually rare) crashbugs in the old resolver. Besides that, it makes things look more clean and understandable. This should be the fix for the following bugids (all the same issue): #2499, #2551, #2558, #2559, #2603, #2642, #2502, #2501, #2618, #2616. Feedback and testing is very much welcomed (syzop@unrealircd.com). Gravatar Bram Matthys2005-10-101-0/+33
* - Win32 crash fixes due to modulizingGravatar Bram Matthys2005-02-041-6/+12
* plokGravatar Bram Matthys2005-02-041-4/+3
* - Made unreal_copyfile try hardlinking first, if that fails.. it will try to ...••• (perhaps this should be a different function?). Anyway, this means less diskspace is needed (~1.5mb or more), and it also makes it a bit easier for RBAC (#2300). - Made a new function DoMD5() which is ssl/non-ssl independent. Also made the cloaking module and the auth functions use it. Hopefully I didn't break anything ;). Suggested by Bugz (#2298). Gravatar Bram Matthys2005-02-041-1/+9
* Added a config.h options, IPV6_COMPRESSED to make Unreal use compressed IPv6 ...Gravatar codemastr2004-11-281-0/+5
* Fixed a bug with /rehash and classes due to the config parser rewrite and Mod...Gravatar codemastr2004-11-051-0/+26
* Made the win32 socket error reporting also handle regular system errorsGravatar codemastr2004-06-011-1/+6
* - And another one, should be fixed now.Gravatar Bram Matthys2004-05-311-1/+1
* Fixed win32 socket error reporting and a NICKIP bugGravatar codemastr2004-05-311-8/+89
* Added some $Id$'zGravatar Bram Matthys2004-05-301-6/+2
* Made the win32 version use a dynamically linked libcGravatar codemastr2004-05-301-15/+19
* Fixed a compile error regarding AF_MAXGravatar codemastr2004-05-291-0/+1
* compile warning cleanupsGravatar codemastr2004-05-271-0/+1
* Added NICKIPGravatar codemastr2004-05-271-5/+427
* Added module support for WindowsGravatar codemastr2004-05-121-2/+2
* ...Gravatar codemastr2004-02-211-1/+1
* Remote include fixes for WindowsGravatar codemastr2004-02-211-5/+70
* Made PATH_MAX get found under SolarisGravatar codemastr2004-02-191-0/+1
* - Modified 404 numeric a bit (#0001515).•••- Fixed 'no server notice on /restart or /die', reported by Lx (#0001062). This was caused by a bug in flush_connections(&me), hopefully there won't be any side effects. - Fixed file owner problems when IRC_UID/IRC_GID is used (eg: when running chrooted). - Fixed crashbug if we were unable to write a remote include file to disk. Gravatar Bram Matthys2004-02-041-0/+4
* - Changed random number generator to use arc4random-alike routines so we can ...••• random numbers. We will also no longer be using rand()/random() anywhere. Thanks to dek\ for pointing out this is potentionally dangerous, especially on win32 with NOSPOOF enabled. Gravatar Bram Matthys2004-01-191-1/+1
* Updated TRE dll and fixed a MAX_PATH problemGravatar codemastr2003-12-231-2/+2
* Made it possible to use remote includes in win32Gravatar codemastr2003-12-231-9/+5
* Various fixes and changesGravatar codemastr2003-12-161-1/+1
* - Added set::static-part: similar to static-quit, default 'no' (static-part d...••• If set to 'yes' or '1' it will strip all part comments, if set to something else it will use that as a part comment. - Partial cleanup of m_part (hopefully I didn't destroy anything). - Minor stats compile warning fixed Gravatar Bram Matthys2003-12-111-1/+1
* - Made it compile at windows againGravatar Bram Matthys2003-12-101-0/+8
* - Added error checking/error messages to new module reloading system, to catc...••• insufficient hd space, permission denied, etc.. Gravatar Bram Matthys2003-12-101-14/+40
* New module rehash system fixesGravatar codemastr2003-12-071-3/+11
* Made it so modules can be reloaded (new image) on /rehashGravatar codemastr2003-12-061-2/+59
* - Yet another code audit:••• - (Just for the record, this audit has nothing to do with the ircnet buffer overflow, unrealircd is not vulnerable) - Various fixes - Visual bug regarding +f & server synching, it was sometimes setting mode +f multiple times depending on the ban-/userlist. - Fixed a possible desynch regarding chmode +L. - Fixed possible client confusion regarding bans. Gravatar Bram Matthys2003-10-131-0/+5
* NS cleanupsGravatar codemastr2003-02-231-1/+1
* conf3Gravatar stskeeps2002-10-191-0/+9
* More WinXP IPv6 fixesGravatar codemastr2002-06-301-2/+2
* - Fixed some stuff to deal with #136 - Please note that we do NOT compress ou...••• - reason for this is because for example ::ffff:192.168.1.5 would really fuck up stuff in the IRC protocol Gravatar stskeeps2002-05-281-0/+2
* Fixed some stuffGravatar griever2002-04-231-4/+4
* First part of skyper's security audit patchGravatar stskeeps2002-04-151-0/+841
* - Compile fix for TS2tsGravatar stskeeps2002-03-111-1/+1
* Clean compile with -WallGravatar codemastr2002-03-041-0/+1
* -Wall -Wno-implicitGravatar griever2002-02-161-1/+1
* ...Gravatar codemastr2002-01-281-1/+1
* Made all functiosn use new-style parameter listsGravatar codemastr2002-01-281-16/+6