[asterisk-commits] russell: branch 1.6.1 r164614 - in /branches/1.6.1: ./ res/res_musiconhold.c

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


Author: russell
Date: Tue Dec 16 08:47:34 2008
New Revision: 164614

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164614
Log:
Merged revisions 164606 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r164606 | russell | 2008-12-16 08:31:02 -0600 (Tue, 16 Dec 2008) | 13 lines

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:
    branches/1.6.1/   (props changed)
    branches/1.6.1/res/res_musiconhold.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/res/res_musiconhold.c?view=diff&rev=164614&r1=164613&r2=164614
==============================================================================
--- branches/1.6.1/res/res_musiconhold.c (original)
+++ branches/1.6.1/res/res_musiconhold.c Tue Dec 16 08:47:34 2008
@@ -511,7 +511,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