summaryrefslogtreecommitdiff
path: root/irc/unreal/files/patch-ircd.c
blob: ddd388cb406803544bb229332c866ce4d5d0954f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$FreeBSD$

--- src/ircd.c	2011-11-05 02:25:24.000000000 -0700
+++ src/ircd.c	2011-11-28 10:21:38.000000000 -0800
@@ -1407,12 +1407,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