diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-19 19:08:42 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-19 19:08:42 +0000 |
commit | 5cb18ea551ae88840d4d7f610b48fcd6c0faf3ea (patch) | |
tree | 7314db851117146d6c0d9eb1f2d59fda945a5a79 /file.c | |
parent | c27a8e3dbad3c232ff48bcc6a9b75183cb7a9ac9 (diff) |
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
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |