Index: file.c =================================================================== --- file.c (revision 7521) +++ file.c (working copy) @@ -955,6 +955,8 @@ 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);