diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-12-29 22:03:50 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-12-29 22:03:50 +0000 |
commit | 1d48790cc29e63e5f0c0e7ccd018803aa64aaa5b (patch) | |
tree | 56c5459d9291d5d1ea394f2d16d6ea475354bfc0 /main/file.c | |
parent | 9db9673d618c3499285061a5f7dc356658c9c264 (diff) |
Merged revisions 299989 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r299989 | tilghman | 2010-12-29 16:02:59 -0600 (Wed, 29 Dec 2010) | 4 lines
Quote arguments, just in case there's a space in a pathname.
(Diagnosed by pabelanger on #asterisk-dev, fixed by me.)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@299990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/file.c')
-rw-r--r-- | main/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/file.c b/main/file.c index 2f6cb3140..349609d30 100644 --- a/main/file.c +++ b/main/file.c @@ -315,7 +315,7 @@ static void filestream_destructor(void *arg) size = strlen(f->filename) + strlen(f->realfilename) + 15; cmd = alloca(size); memset(cmd,0,size); - snprintf(cmd,size,"/bin/mv -f %s %s",f->filename,f->realfilename); + snprintf(cmd, size, "/bin/mv -f \"%s\" \"%s\"", f->filename, f->realfilename); ast_safe_system(cmd); } |