[asterisk-commits] russell: trunk r164606 - in /trunk: ./ res/res_musiconhold.c

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


Author: russell
Date: Tue Dec 16 08:31:02 2008
New Revision: 164606

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164606
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/res/res_musiconhold.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_musiconhold.c?view=diff&rev=164606&r1=164605&r2=164606
==============================================================================
--- trunk/res/res_musiconhold.c (original)
+++ trunk/res/res_musiconhold.c Tue Dec 16 08:31:02 2008
@@ -512,7 +512,7 @@
 		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);
 		}




More information about the asterisk-commits mailing list