[Freeswitch-svn] [commit] r2389 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri Aug 25 01:50:50 EDT 2006


Author: mikej
Date: Fri Aug 25 01:50:49 2006
New Revision: 2389

Modified:
   freeswitch/trunk/src/switch_core.c

Log:
fix db path to use globals dir.  Fixes windows service failure on opening/creating db's.

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Fri Aug 25 01:50:49 2006
@@ -132,7 +132,7 @@
 	if (strchr(dbname, '/')) {
 		strncpy(buf, dbname, size);
 	} else {
-		snprintf(buf, size, "%s%s%s.db", SWITCH_DB_DIR, SWITCH_PATH_SEPARATOR, dbname);
+		snprintf(buf, size, "%s%s%s.db", SWITCH_GLOBAL_dirs.db_dir, SWITCH_PATH_SEPARATOR, dbname);
 	}
 }
 



More information about the Freeswitch-svn mailing list