ports/irc/unreal/files/patch-src__ircd.c
Mathieu Arnold 9fec22bd72 - Fix runtime when built with clang [1] [2]
- Support stage [3]
- Switch to options helpers
- Update patches, and rename them to follow makepatch naming

maintainer timeout [1] [2] [3]
-> take over maintainership

PR:		ports/184150 [1], ports/187117 [2], ports/189615 [3]
Submitted by:	Ryan Frederick [1], Jean-Sébastien Pédron [2], Ryan Frederick [3]
Sponsored by:	Absolight
2014-05-27 23:58:42 +00:00

17 lines
666 B
C

--- ./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