From fa31dc8acff04f4ed024f41de1e59d1a8f42fad8 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Mon, 5 Sep 2016 13:51:40 +0000 Subject: Update to 3.2.10.7 Changes: https://forums.unrealircd.org/viewtopic.php?f=1&t=8588 Sponsored by: Absolight --- irc/unreal/Makefile | 5 +-- irc/unreal/distinfo | 5 +-- irc/unreal/files/patch-Makefile.in | 6 ++-- irc/unreal/files/patch-configure | 6 ++-- irc/unreal/files/patch-doc__example.conf | 22 ------------ irc/unreal/files/patch-doc_example.conf | 22 ++++++++++++ irc/unreal/files/patch-include__config.h | 40 ---------------------- irc/unreal/files/patch-include_config.h | 40 ++++++++++++++++++++++ irc/unreal/files/patch-src__ircd.c | 17 ---------- irc/unreal/files/patch-src__modules.c | 58 -------------------------------- irc/unreal/files/patch-src__s_conf.c | 11 ------ irc/unreal/files/patch-src__url.c | 20 ----------- irc/unreal/files/patch-src_ircd.c | 17 ++++++++++ irc/unreal/files/patch-src_modules.c | 58 ++++++++++++++++++++++++++++++++ irc/unreal/files/patch-src_s__bsd.c | 2 +- irc/unreal/files/patch-src_s__conf.c | 11 ++++++ irc/unreal/files/patch-src_url.c | 20 +++++++++++ 17 files changed, 179 insertions(+), 181 deletions(-) delete mode 100644 irc/unreal/files/patch-doc__example.conf create mode 100644 irc/unreal/files/patch-doc_example.conf delete mode 100644 irc/unreal/files/patch-include__config.h create mode 100644 irc/unreal/files/patch-include_config.h delete mode 100644 irc/unreal/files/patch-src__ircd.c delete mode 100644 irc/unreal/files/patch-src__modules.c delete mode 100644 irc/unreal/files/patch-src__s_conf.c delete mode 100644 irc/unreal/files/patch-src__url.c create mode 100644 irc/unreal/files/patch-src_ircd.c create mode 100644 irc/unreal/files/patch-src_modules.c create mode 100644 irc/unreal/files/patch-src_s__conf.c create mode 100644 irc/unreal/files/patch-src_url.c (limited to 'irc/unreal') diff --git a/irc/unreal/Makefile b/irc/unreal/Makefile index 6a8f7a3d3977..388e9263b7c8 100644 --- a/irc/unreal/Makefile +++ b/irc/unreal/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= Unreal -PORTVERSION= 3.2.10.5 -PORTREVISION= 1 +PORTVERSION= 3.2.10.7 CATEGORIES= irc ipv6 MASTER_SITES= http://www.unrealircd.com/downloads/ DISTNAME= ${PORTNAME}${PORTVERSION} @@ -16,8 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcares.so:dns/c-ares -WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION} - MODULESDIR= ${PREFIX}/lib/${PORTNAME} CONFIGDIR= ${PREFIX}/etc/${PORTNAME} RUNDIR= /var/run/ircd diff --git a/irc/unreal/distinfo b/irc/unreal/distinfo index e9b593f2d34c..faf4ef0da152 100644 --- a/irc/unreal/distinfo +++ b/irc/unreal/distinfo @@ -1,2 +1,3 @@ -SHA256 (Unreal3.2.10.5.tar.gz) = fd1482356763dce30144ad425704e5d6527195acf564a02419006004c8c632fd -SIZE (Unreal3.2.10.5.tar.gz) = 3537602 +TIMESTAMP = 1473082474 +SHA256 (Unreal3.2.10.7.tar.gz) = 472e12cd42d2e725a1795e2bead4786062775782bd015a07697c2edf400d4047 +SIZE (Unreal3.2.10.7.tar.gz) = 3539026 diff --git a/irc/unreal/files/patch-Makefile.in b/irc/unreal/files/patch-Makefile.in index e11fab6a920a..7fd053298b20 100644 --- a/irc/unreal/files/patch-Makefile.in +++ b/irc/unreal/files/patch-Makefile.in @@ -1,6 +1,6 @@ ---- ./Makefile.in.orig 2013-11-24 20:24:26.000000000 +0100 -+++ ./Makefile.in 2014-05-23 00:34:32.000000000 +0200 -@@ -38,7 +38,7 @@ +--- Makefile.in.orig 2016-09-03 19:34:06 UTC ++++ Makefile.in +@@ -38,7 +38,7 @@ IRCDLIBS=@IRCDLIBS@ @TRE_LIBS@ @CARES_LI CRYPTOLIB=@CRYPTOLIB@ OPENSSLINCLUDES= diff --git a/irc/unreal/files/patch-configure b/irc/unreal/files/patch-configure index 9b85ef988aaf..5085629de7d8 100644 --- a/irc/unreal/files/patch-configure +++ b/irc/unreal/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig 2014-07-26 15:42:10 UTC +--- configure.orig 2016-09-03 19:34:06 UTC +++ configure -@@ -3876,6 +3876,47 @@ fi +@@ -3918,6 +3918,47 @@ fi @@ -48,7 +48,7 @@ -@@ -6495,7 +6536,7 @@ fi +@@ -6537,7 +6578,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5 $as_echo "$ac_cv_ip6" >&6; } if test "$ac_cv_ip6" = "no"; then diff --git a/irc/unreal/files/patch-doc__example.conf b/irc/unreal/files/patch-doc__example.conf deleted file mode 100644 index f4c931173b37..000000000000 --- a/irc/unreal/files/patch-doc__example.conf +++ /dev/null @@ -1,22 +0,0 @@ ---- ./doc/example.conf.orig 2013-11-24 20:24:26.000000000 +0100 -+++ ./doc/example.conf 2014-05-23 00:34:32.000000000 +0200 -@@ -33,8 +33,8 @@ - */ - - /* FOR *NIX, uncomment the following 2lines: */ --//loadmodule "src/modules/commands.so"; --//loadmodule "src/modules/cloak.so"; -+loadmodule "%%PREFIX%%/lib/Unreal/commands.so"; -+loadmodule "%%PREFIX%%/lib/Unreal/cloak.so"; - - /* FOR Windows, uncomment the following 2 lines: */ - //loadmodule "modules/commands.dll"; -@@ -379,7 +379,7 @@ - * }; - */ - --log "ircd.log" { -+log "%%LOGDIR%%/ircd.log" { - /* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the - same log */ - maxsize 2097152; diff --git a/irc/unreal/files/patch-doc_example.conf b/irc/unreal/files/patch-doc_example.conf new file mode 100644 index 000000000000..7e154e82d571 --- /dev/null +++ b/irc/unreal/files/patch-doc_example.conf @@ -0,0 +1,22 @@ +--- doc/example.conf.orig 2016-09-03 19:34:06 UTC ++++ doc/example.conf +@@ -33,8 +33,8 @@ + */ + + /* FOR *NIX, uncomment the following 2lines: */ +-//loadmodule "src/modules/commands.so"; +-//loadmodule "src/modules/cloak.so"; ++loadmodule "/usr/local/lib/Unreal/commands.so"; ++loadmodule "/usr/local/lib/Unreal/cloak.so"; + + /* FOR Windows, uncomment the following 2 lines: */ + //loadmodule "modules/commands.dll"; +@@ -379,7 +379,7 @@ drpass { + * }; + */ + +-log "ircd.log" { ++log "/var/log/ircd/ircd.log" { + /* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the + same log */ + maxsize 2097152; diff --git a/irc/unreal/files/patch-include__config.h b/irc/unreal/files/patch-include__config.h deleted file mode 100644 index 79926fbf4061..000000000000 --- a/irc/unreal/files/patch-include__config.h +++ /dev/null @@ -1,40 +0,0 @@ ---- ./include/config.h.orig 2013-11-24 20:24:26.000000000 +0100 -+++ ./include/config.h 2014-05-23 00:34:32.000000000 +0200 -@@ -242,16 +242,16 @@ - * line argument. These used as the default values for options absent from the user's - * unrealircd.conf. - */ --#define CPATH "unrealircd.conf" /* server configuration file */ --#define MPATH "ircd.motd" /* server MOTD file */ --#define SMPATH "ircd.smotd" /* short MOTD file */ --#define RPATH "ircd.rules" /* server rules file */ --#define OPATH "oper.motd" /* Operators MOTD file */ --#define LPATH "debug.log" /* Where the debug file lives, if DEBUGMODE */ --#define PPATH "ircd.pid" /* file for server pid */ --#define VPATH "ircd.svsmotd" /* Services MOTD append. */ --#define BPATH "bot.motd" /* Bot MOTD */ --#define IRCDTUNE "ircd.tune" /* tuning .. */ -+#define CPATH "%%PREFIX%%/etc/Unreal/unrealircd.conf" /* server configuration file */ -+#define MPATH "%%PREFIX%%/etc/Unreal/ircd.motd" /* server MOTD file */ -+#define SMPATH "%%PREFIX%%/etc/Unreal/ircd.smotd" /* short MOTD file */ -+#define RPATH "%%PREFIX%%/etc/Unreal/ircd.rules" /* server rules file */ -+#define OPATH "%%PREFIX%%/etc/Unreal/oper.motd" /* Operators MOTD file */ -+#define LPATH "%%LOGDIR%%/debug.log" /* Where the debug file lives, if DEBUGMODE */ -+#define PPATH "%%RUNDIR%%/ircd.pid" /* file for server pid */ -+#define VPATH "%%PREFIX%%/etc/Unreal/ircd.svsmotd" /* Services MOTD append. */ -+#define BPATH "%%PREFIX%%/etc/Unreal/bot.motd" /* Bot MOTD */ -+#define IRCDTUNE "%%RUNDIR%%/ircd.tune" /* tuning .. */ - - /* CHROOTDIR - * -@@ -277,8 +277,8 @@ - * define IRC_USER to that user name. This should only be defined if you - * are running as root and even then perhaps not. - */ --/* #define IRC_USER "" */ --/* #define IRC_GROUP "" */ -+#define IRC_USER "%%USERS%%" -+#define IRC_GROUP "%%GROUPS%%" - - - /* SHOW_INVISIBLE_LUSERS diff --git a/irc/unreal/files/patch-include_config.h b/irc/unreal/files/patch-include_config.h new file mode 100644 index 000000000000..689e613ea534 --- /dev/null +++ b/irc/unreal/files/patch-include_config.h @@ -0,0 +1,40 @@ +--- include/config.h.orig 2016-09-03 19:34:06 UTC ++++ include/config.h +@@ -242,16 +242,16 @@ + * line argument. These used as the default values for options absent from the user's + * unrealircd.conf. + */ +-#define CPATH "unrealircd.conf" /* server configuration file */ +-#define MPATH "ircd.motd" /* server MOTD file */ +-#define SMPATH "ircd.smotd" /* short MOTD file */ +-#define RPATH "ircd.rules" /* server rules file */ +-#define OPATH "oper.motd" /* Operators MOTD file */ +-#define LPATH "debug.log" /* Where the debug file lives, if DEBUGMODE */ +-#define PPATH "ircd.pid" /* file for server pid */ +-#define VPATH "ircd.svsmotd" /* Services MOTD append. */ +-#define BPATH "bot.motd" /* Bot MOTD */ +-#define IRCDTUNE "ircd.tune" /* tuning .. */ ++#define CPATH "/usr/local/etc/Unreal/unrealircd.conf" /* server configuration file */ ++#define MPATH "/usr/local/etc/Unreal/ircd.motd" /* server MOTD file */ ++#define SMPATH "/usr/local/etc/Unreal/ircd.smotd" /* short MOTD file */ ++#define RPATH "/usr/local/etc/Unreal/ircd.rules" /* server rules file */ ++#define OPATH "/usr/local/etc/Unreal/oper.motd" /* Operators MOTD file */ ++#define LPATH "/var/log/ircd/debug.log" /* Where the debug file lives, if DEBUGMODE */ ++#define PPATH "/var/run/ircd/ircd.pid" /* file for server pid */ ++#define VPATH "/usr/local/etc/Unreal/ircd.svsmotd" /* Services MOTD append. */ ++#define BPATH "/usr/local/etc/Unreal/bot.motd" /* Bot MOTD */ ++#define IRCDTUNE "/var/run/ircd/ircd.tune" /* tuning .. */ + + /* CHROOTDIR + * +@@ -277,8 +277,8 @@ + * define IRC_USER to that user name. This should only be defined if you + * are running as root and even then perhaps not. + */ +-/* #define IRC_USER "" */ +-/* #define IRC_GROUP "" */ ++#define IRC_USER "ircd" ++#define IRC_GROUP "ircd" + + + /* SHOW_INVISIBLE_LUSERS diff --git a/irc/unreal/files/patch-src__ircd.c b/irc/unreal/files/patch-src__ircd.c deleted file mode 100644 index 8ac99ba9bfca..000000000000 --- a/irc/unreal/files/patch-src__ircd.c +++ /dev/null @@ -1,17 +0,0 @@ ---- ./src/ircd.c.orig 2013-11-24 20:24:26.000000000 +0100 -+++ ./src/ircd.c 2014-05-23 00:34:32.000000000 +0200 -@@ -1410,12 +1410,12 @@ - } - #endif - #ifndef _WIN32 -- mkdir("tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ -+ mkdir("%%RUNDIR%%/tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ - #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) - mkdir("cache", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the cache dir, if using curl and it doesn't exist */ - #endif - #else -- mkdir("tmp"); -+ mkdir("%%RUNDIR%%/tmp"); - #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) - mkdir("cache"); - #endif diff --git a/irc/unreal/files/patch-src__modules.c b/irc/unreal/files/patch-src__modules.c deleted file mode 100644 index 3d8301a14f62..000000000000 --- a/irc/unreal/files/patch-src__modules.c +++ /dev/null @@ -1,58 +0,0 @@ ---- ./src/modules.c.orig 2013-11-24 20:24:26.000000000 +0100 -+++ ./src/modules.c 2014-05-23 00:34:33.000000000 +0200 -@@ -183,12 +183,12 @@ - { - char tempbuf[PATH_MAX+1]; - #ifndef _WIN32 -- DIR *fd = opendir("tmp"); -+ DIR *fd = opendir("%%RUNDIR%%/tmp"); - struct dirent *dir; - - if (!fd) /* Ouch.. this is NOT good!! */ - { -- config_error("Unable to open 'tmp' directory: %s, please create one with the appropriate permissions", -+ config_error("Unable to open '%%RUNDIR%%' directory: %s, please create one with the appropriate permissions", - strerror(errno)); - if (!loop.ircd_booted) - exit(7); -@@ -199,19 +199,19 @@ - { - if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, "..")) - continue; -- strcpy(tempbuf, "tmp/"); -+ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); - strcat(tempbuf, dir->d_name); - remove(tempbuf); - } - closedir(fd); - #else - WIN32_FIND_DATA hData; -- HANDLE hFile = FindFirstFile("tmp/*", &hData); -+ HANDLE hFile = FindFirstFile("%%RUNDIR%%/tmp/*", &hData); - if (hFile != INVALID_HANDLE_VALUE) - { - if (strcmp(hData.cFileName, ".") || strcmp(hData.cFileName, "..")) - { -- strcpy(tempbuf, "tmp/"); -+ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); - strcat(tempbuf, hData.cFileName); - remove(tempbuf); - } -@@ -220,7 +220,7 @@ - { - if (!strcmp(hData.cFileName, ".") || !strcmp(hData.cFileName, "..")) - continue; -- strcpy(tempbuf, "tmp/"); -+ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); - strcat(tempbuf, hData.cFileName); - remove(tempbuf); - } -@@ -329,7 +329,7 @@ - path = path_; - - -- tmppath = unreal_mktemp("tmp", unreal_getfilename(path)); -+ tmppath = unreal_mktemp("%%RUNDIR%%/tmp", unreal_getfilename(path)); - if (!tmppath) - return "Unable to create temporary file!"; - #ifndef _WIN32 diff --git a/irc/unreal/files/patch-src__s_conf.c b/irc/unreal/files/patch-src__s_conf.c deleted file mode 100644 index 64ace6cb2498..000000000000 --- a/irc/unreal/files/patch-src__s_conf.c +++ /dev/null @@ -1,11 +0,0 @@ ---- ./src/s_conf.c.orig 2013-11-24 20:24:26.000000000 +0100 -+++ ./src/s_conf.c 2014-05-23 00:34:33.000000000 +0200 -@@ -9832,7 +9832,7 @@ - { - char *urlfile = url_getfilename(url); - char *file_basename = unreal_getfilename(urlfile); -- char *tmp = unreal_mktemp("tmp", file_basename); -+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", file); - free(urlfile); - - if (cached) diff --git a/irc/unreal/files/patch-src__url.c b/irc/unreal/files/patch-src__url.c deleted file mode 100644 index 56860c894f88..000000000000 --- a/irc/unreal/files/patch-src__url.c +++ /dev/null @@ -1,20 +0,0 @@ ---- ./src/url.c.orig 2013-11-24 20:24:26.000000000 +0100 -+++ ./src/url.c 2014-05-23 00:34:33.000000000 +0200 -@@ -174,7 +174,7 @@ - CURLcode res; - char *file = url_getfilename(url); - char *filename = unreal_getfilename(file); -- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); -+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf"); - FILE *fd; - - -@@ -359,7 +359,7 @@ - { - char *file = url_getfilename(url); - char *filename = unreal_getfilename(file); -- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); -+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf"); - FileHandle *handle = MyMallocEx(sizeof(FileHandle)); - handle->fd = fopen(tmp, "wb"); - if (!handle->fd) diff --git a/irc/unreal/files/patch-src_ircd.c b/irc/unreal/files/patch-src_ircd.c new file mode 100644 index 000000000000..eb9a3d5a2868 --- /dev/null +++ b/irc/unreal/files/patch-src_ircd.c @@ -0,0 +1,17 @@ +--- src/ircd.c.orig 2016-09-03 19:34:06 UTC ++++ src/ircd.c +@@ -1422,12 +1422,12 @@ int InitwIRCD(int argc, char *argv[]) + } + #endif + #ifndef _WIN32 +- mkdir("tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ ++ mkdir("/var/run/ircd/tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ + #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) + mkdir("cache", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the cache dir, if using curl and it doesn't exist */ + #endif + #else +- mkdir("tmp"); ++ mkdir("/var/run/ircd/tmp"); + #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) + mkdir("cache"); + #endif diff --git a/irc/unreal/files/patch-src_modules.c b/irc/unreal/files/patch-src_modules.c new file mode 100644 index 000000000000..2ca1289abb17 --- /dev/null +++ b/irc/unreal/files/patch-src_modules.c @@ -0,0 +1,58 @@ +--- src/modules.c.orig 2016-09-03 19:34:06 UTC ++++ src/modules.c +@@ -183,12 +183,12 @@ void DeleteTempModules(void) + { + char tempbuf[PATH_MAX+1]; + #ifndef _WIN32 +- DIR *fd = opendir("tmp"); ++ DIR *fd = opendir("/var/run/ircd/tmp"); + struct dirent *dir; + + if (!fd) /* Ouch.. this is NOT good!! */ + { +- config_error("Unable to open 'tmp' directory: %s, please create one with the appropriate permissions", ++ config_error("Unable to open '/var/run/ircd' directory: %s, please create one with the appropriate permissions", + strerror(errno)); + if (!loop.ircd_booted) + exit(7); +@@ -199,19 +199,19 @@ void DeleteTempModules(void) + { + if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, "..")) + continue; +- strcpy(tempbuf, "tmp/"); ++ strcpy(tempbuf, "/var/run/ircd/tmp/"); + strcat(tempbuf, dir->d_name); + remove(tempbuf); + } + closedir(fd); + #else + WIN32_FIND_DATA hData; +- HANDLE hFile = FindFirstFile("tmp/*", &hData); ++ HANDLE hFile = FindFirstFile("/var/run/ircd/tmp/*", &hData); + if (hFile != INVALID_HANDLE_VALUE) + { + if (strcmp(hData.cFileName, ".") || strcmp(hData.cFileName, "..")) + { +- strcpy(tempbuf, "tmp/"); ++ strcpy(tempbuf, "/var/run/ircd/tmp/"); + strcat(tempbuf, hData.cFileName); + remove(tempbuf); + } +@@ -220,7 +220,7 @@ void DeleteTempModules(void) + { + if (!strcmp(hData.cFileName, ".") || !strcmp(hData.cFileName, "..")) + continue; +- strcpy(tempbuf, "tmp/"); ++ strcpy(tempbuf, "/var/run/ircd/tmp/"); + strcat(tempbuf, hData.cFileName); + remove(tempbuf); + } +@@ -329,7 +329,7 @@ char *Module_Create(char *path_) + path = path_; + + +- tmppath = unreal_mktemp("tmp", unreal_getfilename(path)); ++ tmppath = unreal_mktemp("/var/run/ircd/tmp", unreal_getfilename(path)); + if (!tmppath) + return "Unable to create temporary file!"; + #ifndef _WIN32 diff --git a/irc/unreal/files/patch-src_s__bsd.c b/irc/unreal/files/patch-src_s__bsd.c index 5d74880330c1..25be7bf0b05a 100644 --- a/irc/unreal/files/patch-src_s__bsd.c +++ b/irc/unreal/files/patch-src_s__bsd.c @@ -1,4 +1,4 @@ ---- src/s_bsd.c.orig 2015-08-16 06:44:25 UTC +--- src/s_bsd.c.orig 2016-09-03 19:34:06 UTC +++ src/s_bsd.c @@ -455,7 +455,7 @@ int inetport(aClient *cptr, char *name, */ diff --git a/irc/unreal/files/patch-src_s__conf.c b/irc/unreal/files/patch-src_s__conf.c new file mode 100644 index 000000000000..44f73d2dc9cf --- /dev/null +++ b/irc/unreal/files/patch-src_s__conf.c @@ -0,0 +1,11 @@ +--- src/s_conf.c.orig 2016-09-03 19:34:06 UTC ++++ src/s_conf.c +@@ -9841,7 +9841,7 @@ static void conf_download_complete(const + { + char *urlfile = url_getfilename(url); + char *file_basename = unreal_getfilename(urlfile); +- char *tmp = unreal_mktemp("tmp", file_basename); ++ char *tmp = unreal_mktemp("/var/run/ircd/tmp", file); + free(urlfile); + + if (cached) diff --git a/irc/unreal/files/patch-src_url.c b/irc/unreal/files/patch-src_url.c new file mode 100644 index 000000000000..f3cd54d496a7 --- /dev/null +++ b/irc/unreal/files/patch-src_url.c @@ -0,0 +1,20 @@ +--- src/url.c.orig 2016-09-03 19:34:06 UTC ++++ src/url.c +@@ -174,7 +174,7 @@ char *download_file(const char *url, cha + CURLcode res; + char *file = url_getfilename(url); + char *filename = unreal_getfilename(file); +- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); ++ char *tmp = unreal_mktemp("/var/run/ircd/tmp", filename ? filename : "download.conf"); + FILE *fd; + + +@@ -359,7 +359,7 @@ void download_file_async(const char *url + { + char *file = url_getfilename(url); + char *filename = unreal_getfilename(file); +- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); ++ char *tmp = unreal_mktemp("/var/run/ircd/tmp", filename ? filename : "download.conf"); + FileHandle *handle = MyMallocEx(sizeof(FileHandle)); + handle->fd = fopen(tmp, "wb"); + if (!handle->fd) -- cgit v1.2.3