diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-19 19:06:46 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-19 19:06:46 +0000 |
commit | 88479e0b7791bd235d19b6d14fd901a16be62e68 (patch) | |
tree | 37893c7a11b4372c35ef737932614a61d27db010 /file.c | |
parent | 13dd62e383d87f4e4209bf8e4a3ee33e94a05e62 (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.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); |