summaryrefslogtreecommitdiff
path: root/main/db.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2011-12-07 20:15:29 +0000
committerTerry Wilson <twilson@digium.com>2011-12-07 20:15:29 +0000
commit980ab2d018086aa7663b190a4361440a39462bdd (patch)
tree6e30766b047d4862f7697913c67d272301e8ef47 /main/db.c
parent7e634c21f80f88ed6b7b57451a6aef4cb2293d05 (diff)
Add ASTSBINDIR to the list of configurable paths
This patch also makes astdb2sqlite3 and astcanary use the configured directory instead of relying on $PATH. (closes issue ASTERISK-18959) Review: https://reviewboard.asterisk.org/r/1613/ ........ Merged revisions 347344 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@347345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/db.c')
-rw-r--r--main/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/db.c b/main/db.c
index 7b37a2377..c3e71c594 100644
--- a/main/db.c
+++ b/main/db.c
@@ -156,7 +156,7 @@ static int convert_bdb_to_sqlite3(void)
char *cmd;
int res;
- ast_asprintf(&cmd, "astdb2sqlite3 '%s'\n", ast_config_AST_DB);
+ ast_asprintf(&cmd, "%s/astdb2sqlite3 '%s'\n", ast_config_AST_SBIN_DIR, ast_config_AST_DB);
res = ast_safe_system(cmd);
ast_free(cmd);