blob: 8ac99ba9bfcad79bfba900d823358465f735a03d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- ./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
|