[Asterisk-cvs] asterisk/res res_monitor.c,1.21.2.5,1.21.2.6

russell at lists.digium.com russell at lists.digium.com
Sat May 14 14:16:11 CDT 2005


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv30909/res

Modified Files:
      Tag: v1-0
	res_monitor.c 
Log Message:
allow spaces in monitor filenames (Thanks to gbdrbob for catching this one!)


Index: res_monitor.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_monitor.c,v
retrieving revision 1.21.2.5
retrieving revision 1.21.2.6
diff -u -d -r1.21.2.5 -r1.21.2.6
--- res_monitor.c	6 May 2005 07:17:17 -0000	1.21.2.5
+++ res_monitor.c	14 May 2005 18:21:43 -0000	1.21.2.6
@@ -246,7 +246,7 @@
 			
 			snprintf(tmp, sizeof(tmp), "%s \"%s/%s-in.%s\" \"%s/%s-out.%s\" \"%s/%s.%s\" %s &", execute, dir, name, format, dir, name, format, dir, name, format,execute_args);
 			if (delfiles) {
-				snprintf(tmp2,sizeof(tmp2), "( %s& rm -f \"%s\"/%s-* ) &",tmp, dir ,name); /* remove legs when done mixing */
+				snprintf(tmp2,sizeof(tmp2), "( %s& rm -f \"%s/%s-\"* ) &",tmp, dir ,name); /* remove legs when done mixing */
 				strncpy(tmp, tmp2, sizeof(tmp) - 1);
 			}
 			ast_verbose("monitor executing %s\n",tmp);




More information about the svn-commits mailing list