[asterisk-commits] rmudgett: branch 11 r376234 - in /branches/11: ./ pbx/pbx_spool.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 14 13:53:27 CST 2012
Author: rmudgett
Date: Wed Nov 14 13:53:23 2012
New Revision: 376234
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376234
Log:
Fix call files when astspooldir is relative.
Future dated call files are ignored when astspooldir is relative to the
current directory. The queue_file() assumed that the qdir needed to be
prepended if the given filename did not start with a '/'. If astspooldir
is relative it is not going to start from the root directory obviously so
it will not start with a '/'. The filename used in queue_file()
ultimately results in qdir prepended multiple times.
* Made queue_file() not prepend qdir if the filename contains a '/'.
(closes issue ASTERISK-20593)
Reported by: James Le Cuirot
Patches:
0004-Fix-future-call-files-from-relative-directories.patch (license #6439) patch uploaded by James Le Cuirot
........
Merged revisions 376232 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 376233 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
branches/11/ (props changed)
branches/11/pbx/pbx_spool.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: branches/11/pbx/pbx_spool.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/pbx/pbx_spool.c?view=diff&rev=376234&r1=376233&r2=376234
==============================================================================
--- branches/11/pbx/pbx_spool.c (original)
+++ branches/11/pbx/pbx_spool.c Wed Nov 14 13:53:23 2012
@@ -509,7 +509,7 @@
int res;
time_t now = time(NULL);
- if (filename[0] != '/') {
+ if (!strchr(filename, '/')) {
char *fn = ast_alloca(strlen(qdir) + strlen(filename) + 2);
sprintf(fn, "%s/%s", qdir, filename); /* SAFE */
filename = fn;
More information about the asterisk-commits
mailing list