[asterisk-commits] branch 1.2 - r7523 /branches/1.2/file.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Dec 19 13:06:47 CST 2005


Author: tilghman
Date: Mon Dec 19 13:06:46 2005
New Revision: 7523

URL: http://svn.digium.com/view/asterisk?rev=7523&view=rev
Log:
Bug 5988 - record append option not working

Modified:
    branches/1.2/file.c

Modified: branches/1.2/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/file.c?rev=7523&r1=7522&r2=7523&view=diff
==============================================================================
--- branches/1.2/file.c (original)
+++ branches/1.2/file.c Mon Dec 19 13:06:46 2005
@@ -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);



More information about the asterisk-commits mailing list