From 5cb18ea551ae88840d4d7f610b48fcd6c0faf3ea Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 19 Dec 2005 19:08:42 +0000 Subject: Merged revisions 7523 via svnmerge from /branches/1.2 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7524 f38db490-d61c-443f-a65b-d21fe96a405b --- file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'file.c') diff --git a/file.c b/file.c index 49aeca06c..50c491c43 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); -- cgit v1.2.3