From fcb8ab5da63316fe21cf3fe36712f96b2ef3e019 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 14 May 2005 18:21:43 +0000 Subject: [PATCH] allow spaces in monitor filenames (Thanks to gbdrbob for catching this one!) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5648 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_monitor.c b/res/res_monitor.c index 39c8f9f3e7..76f15b8ee1 100755 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -246,7 +246,7 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock) 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); -- 2.47.2