[evolution-ews] Set read mode also while creating oal cache file
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Set read mode also while creating oal cache file
- Date: Wed, 29 Jun 2011 11:57:39 +0000 (UTC)
commit dafaa585311c4514613e56c2dba439c2907b109c
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Wed Jun 29 17:13:34 2011 +0530
Set read mode also while creating oal cache file
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 92f4d78..22f666a 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1601,7 +1601,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_WRONLY | O_CREAT);
+ fd = g_open (data->cache_filename, O_RDONLY | O_WRONLY | O_CREAT);
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]