]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Change recent patch to not use a hard coded path inside of a .c file
authorJames Golovich <james@gnuinter.net>
Tue, 7 Sep 2004 15:02:53 +0000 (15:02 +0000)
committerJames Golovich <james@gnuinter.net>
Tue, 7 Sep 2004 15:02:53 +0000 (15:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3743 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c
asterisk.h

index 00f22010d03216824cbb0ea1c9a3a5b53aee0315..9c77e152730e51d8f44392965c492b8b4fca5e59 100755 (executable)
@@ -80,7 +80,7 @@ int option_cache_record_files = 0;
 int option_overrideconfig = 0;
 int option_reconnect = 0;
 int fully_booted = 0;
-char record_cache_dir[AST_CACHE_DIR_LEN] = "/var/spool/asterisk/tmp";
+char record_cache_dir[AST_CACHE_DIR_LEN] = AST_TMP_DIR;
 
 static int ast_socket = -1;            /* UNIX Socket for allowing remote control */
 static int ast_consock = -1;           /* UNIX Socket for controlling another asterisk */
index 1ceb13c77f11b2c464ae8a4725665d29058a02bf..08fc295d5aa0cb952fd93cd32bbfa3d2e6325434 100755 (executable)
@@ -28,6 +28,7 @@
 #define AST_AGI_DIR    ASTAGIDIR
 #define AST_KEY_DIR    ASTVARLIBDIR "/keys"
 #define AST_DB         ASTVARLIBDIR "/astdb"
+#define AST_TMP_DIR    ASTSPOOLDIR "/tmp"
 
 #define AST_CONFIG_FILE ASTCONFPATH