[Asterisk-cvs] asterisk/apps app_agi.c,1.12,1.13

markster at lists.digium.com markster at lists.digium.com
Tue Oct 21 22:11:46 CDT 2003


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv2280/apps

Modified Files:
	app_agi.c 
Log Message:
Set append flag properly


Index: app_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_agi.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- app_agi.c	8 Sep 2003 16:48:06 -0000	1.12
+++ app_agi.c	22 Oct 2003 03:37:47 -0000	1.13
@@ -515,7 +515,7 @@
 	if (!res)
 		res = ast_waitstream(chan, argv[4]);
 	if (!res) {
-		fs = ast_writefile(argv[2], argv[3], NULL, O_CREAT | O_WRONLY, 0, 0644);
+		fs = ast_writefile(argv[2], argv[3], NULL, O_CREAT | O_WRONLY | (sample_offset ? O_APPEND : 0), 0, 0644);
 		if (!fs) {
 			res = -1;
 			fdprintf(agi->fd, "200 result=%d (writefile)\n", res);




More information about the svn-commits mailing list