projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b166d3
)
Merged revisions 7523 via svnmerge from
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Mon, 19 Dec 2005 19:08:42 +0000
(19:08 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Mon, 19 Dec 2005 19:08:42 +0000
(19:08 +0000)
/branches/1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7524
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index
49aeca0
..
50c491c
100644
(file)
--- 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);