]> git.ipfire.org Git - thirdparty/asterisk.git/commit
monitor: prevent attempts to move/remove recordings skipped with 'i' and 'o'.
authorJonathan Rose <jrose@digium.com>
Fri, 16 Nov 2012 19:59:45 +0000 (19:59 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 16 Nov 2012 19:59:45 +0000 (19:59 +0000)
commitc0c552de2c59a5142d3067dd26d73a08369c9932
tree3625aafcb9992c1f2658237dd865e1cde200028e
parentc40b60f9702cfdb7c2a68e3c6de15afb91584eff
monitor: prevent attempts to move/remove recordings skipped with 'i' and 'o'.

The i and o options for monitor skip the input and output sides of a recording
respectively. This patch addresses a problem in those options when monitor is
called without specifying a specific filename where monitor will try to move
the recording that was skipped. Since this usually doesn't exist when these
options are used, it would produce a warning when it does this in most cases,
but it is conceivable that there are use cases where this could result in
moving/removing a file unintentionally.

(closes issue ASTERISK-20641)
Reported by: Jonathan Rose
Review: https://reviewboard.asterisk.org/r/2190/
........

Merged revisions 376389 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 376390 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@376391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_monitor.c