diff options
author | Automerge script <automerge@asterisk.org> | 2012-11-14 20:20:21 +0000 |
---|---|---|
committer | Automerge script <automerge@asterisk.org> | 2012-11-14 20:20:21 +0000 |
commit | c178c4d337b0e164a105503214686a24cb2fc490 (patch) | |
tree | e9946e27d5a68628c4c7055eda01516b0dd354ff /pbx | |
parent | 096540c2c0f1c445ce9ff48e67282ad7f41d000d (diff) |
Merged revisions 376235 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk
................
r376235 | rmudgett | 2012-11-14 13:55:39 -0600 (Wed, 14 Nov 2012) | 25 lines
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
........
Merged revisions 376234 from http://svn.asterisk.org/svn/asterisk/branches/11
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_spool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index f1b744559..6a47bef87 100644 --- a/pbx/pbx_spool.c +++ b/pbx/pbx_spool.c @@ -509,7 +509,7 @@ static void queue_file(const char *filename, time_t when) 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; |