Bug 5988 - record append option not working

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Tilghman Lesher 20 years ago
parent 68e6502484
commit 2ca80e76a0

@ -955,6 +955,8 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con
fs->filename = strdup(filename); fs->filename = strdup(filename);
} }
fs->vfs = NULL; fs->vfs = NULL;
/* If truncated, we'll be at the beginning; if not truncated, then append */
f->seek(fs, 0, SEEK_END);
} else { } else {
ast_log(LOG_WARNING, "Unable to rewrite %s\n", fn); ast_log(LOG_WARNING, "Unable to rewrite %s\n", fn);
close(fd); close(fd);

Loading…
Cancel
Save