aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-26 00:33:17 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-26 00:33:17 +0000
commit1841112edc8b28c8121c24aab0be4c7bb2807497 (patch)
treea1e2dd76ded198336f691d5c20fb653bfa387e26 /res/res_musiconhold.c
parent4fba0812c0ca4e0f605ee03a5f66f213cb10d3af (diff)
misplaced chdir call on moh DoH\!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4555 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rwxr-xr-xres/res_musiconhold.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 470f7ffc4..fa202a1cb 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -388,9 +388,8 @@ static int spawn_mp3(struct mohclass *class)
}
}
/* Child */
-
- if(class->custom) {
- chdir(class->dir);
+ chdir(class->dir);
+ if(class->custom) {
execv(argv[0], argv);
} else {
/* Default install is /usr/local/bin */