misplaced chdir call on moh DoH\!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Anthony Minessale II 21 years ago
parent 802dbe4677
commit 10a6e598ac

@ -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 */

Loading…
Cancel
Save