[svn-commits] jpeeler: branch 1.6.2 r250790 - in /branches/1.6.2: ./ res/res_musiconhold.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Mar 4 19:09:19 CST 2010


Author: jpeeler
Date: Thu Mar  4 19:09:15 2010
New Revision: 250790

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

................
  r250787 | jpeeler | 2010-03-04 19:05:46 -0600 (Thu, 04 Mar 2010) | 16 lines
  
  Merged revisions 250786 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r250786 | jpeeler | 2010-03-04 19:02:58 -0600 (Thu, 04 Mar 2010) | 9 lines
    
    Fix not being able to specify a URL in MOH class directory.
    
    Don't attempt to chdir on a URL!
    
    (closes issue #16875)
    Reported by: raarts
    Patches: 
          moh-http.patch uploaded by raarts (license 937)
  ........
................

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/res/res_musiconhold.c

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

Modified: branches/1.6.2/res/res_musiconhold.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/res/res_musiconhold.c?view=diff&rev=250790&r1=250789&r2=250790
==============================================================================
--- branches/1.6.2/res/res_musiconhold.c (original)
+++ branches/1.6.2/res/res_musiconhold.c Thu Mar  4 19:09:15 2010
@@ -534,7 +534,7 @@
 		ast_close_fds_above_n(STDERR_FILENO);
 
 		/* Child */
-		if (strcasecmp(class->dir, "nodir") && chdir(class->dir) < 0) {
+		if (strncasecmp(class->dir, "http://", 7) && strcasecmp(class->dir, "nodir") && chdir(class->dir) < 0) {
 			ast_log(LOG_WARNING, "chdir() failed: %s\n", strerror(errno));
 			_exit(1);
 		}




More information about the svn-commits mailing list