aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-19 19:06:46 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-19 19:06:46 +0000
commit88479e0b7791bd235d19b6d14fd901a16be62e68 (patch)
tree37893c7a11b4372c35ef737932614a61d27db010 /file.c
parent13dd62e383d87f4e4209bf8e4a3ee33e94a05e62 (diff)
Bug 5988 - record append option not working
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7523 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index 530ee488e..4d0ffc34e 100644
--- a/file.c
+++ b/file.c
@@ -955,6 +955,8 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con
fs->filename = strdup(filename);
}
fs->vfs = NULL;
+ /* If truncated, we'll be at the beginning; if not truncated, then append */
+ f->seek(fs, 0, SEEK_END);
} else {
ast_log(LOG_WARNING, "Unable to rewrite %s\n", fn);
close(fd);