diff options
author | Anthony Minessale II <anthmct@yahoo.com> | 2004-12-26 00:33:17 +0000 |
---|---|---|
committer | Anthony Minessale II <anthmct@yahoo.com> | 2004-12-26 00:33:17 +0000 |
commit | 10a6e598accfa2a6595857cc98082526efba3e2c (patch) | |
tree | a1e2dd76ded198336f691d5c20fb653bfa387e26 /res/res_musiconhold.c | |
parent | 802dbe4677a939012ec6240167c70051b5433ad8 (diff) |
misplaced chdir call on moh DoH\!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_musiconhold.c')
-rwxr-xr-x | res/res_musiconhold.c | 5 |
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 */ |