mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 03:45:27 +00:00
Merged revisions 164605 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r164605 | russell | 2008-12-16 08:28:10 -0600 (Tue, 16 Dec 2008) | 5 lines Don't try to change working directory if a directory was not configured. (closes issue #14089) Reported by: caspy ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -512,7 +512,7 @@ static int spawn_mp3(struct mohclass *class)
|
||||
ast_close_fds_above_n(STDERR_FILENO);
|
||||
|
||||
/* Child */
|
||||
if (chdir(class->dir) < 0) {
|
||||
if (strcasecmp(class->dir, "nodir") && chdir(class->dir) < 0) {
|
||||
ast_log(LOG_WARNING, "chdir() failed: %s\n", strerror(errno));
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user