[asterisk-commits] russell: branch 1.4 r164605 - /branches/1.4/res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 16 08:28:11 CST 2008


Author: russell
Date: Tue Dec 16 08:28:10 2008
New Revision: 164605

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164605
Log:
Don't try to change working directory if a directory was not configured.

(closes issue #14089)
Reported by: caspy

Modified:
    branches/1.4/res/res_musiconhold.c

Modified: branches/1.4/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_musiconhold.c?view=diff&rev=164605&r1=164604&r2=164605
==============================================================================
--- branches/1.4/res/res_musiconhold.c (original)
+++ branches/1.4/res/res_musiconhold.c Tue Dec 16 08:28:10 2008
@@ -481,7 +481,7 @@
 			}
 		}
 		/* 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);
 		}




More information about the asterisk-commits mailing list