From: Anthony Minessale II Date: Sun, 26 Dec 2004 00:33:17 +0000 (+0000) Subject: misplaced chdir call on moh DoH\! X-Git-Tag: 1.2.0-beta1~1580 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10a6e598accfa2a6595857cc98082526efba3e2c;p=thirdparty%2Fasterisk.git misplaced chdir call on moh DoH\! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4555 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 470f7ffc4e..fa202a1cb0 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 */