[evolution-ews] Open the file in append mode



commit e35f83c2e7d05e4e3bad9e47319bf44486df326f
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Sun Jul 10 16:20:39 2011 +0530

    Open the file in append mode

 src/server/e-ews-connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index f0dfb28..6bc4ccc 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1617,7 +1617,7 @@ ews_soup_got_chunk (SoupMessage *msg, SoupBuffer *chunk, gpointer user_data)
 		data->progress_fn (data->progress_data, pc);
 	}
 
-	fd = g_open (data->cache_filename, O_RDONLY | O_WRONLY | O_CREAT, 0600);
+	fd = g_open (data->cache_filename, O_RDONLY | O_WRONLY | O_APPEND | O_CREAT, 0600);
 	if (fd != -1) {
 		if (write (fd, (const gchar*)chunk->data, chunk->length) != chunk->length) {
 			g_set_error (&data->error, EWS_CONNECTION_ERROR, EWS_CONNECTION_ERROR_UNKNOWN,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]