mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
misplaced chdir call on moh DoH\!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user