diff options
author | Tor Lillqvist <tml@novell.com> | 2006-06-15 11:16:25 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2006-06-15 11:16:25 +0000 |
commit | d0ac14b5467eb9da3fe75f34ff452968cd239302 (patch) | |
tree | 35e8e7f463aa6fc2a6ee663061137c2bac0303bf | |
parent | 2dc255497e312debcb00e97dba4d639adb19e9fc (diff) | |
download | evolution-data-server-d0ac14b5467eb9da3fe75f34ff452968cd239302.tar.gz |
Use g_stat() instead of plain stat() for full Unicode pathname support on
2006-06-15 Tor Lillqvist <tml@novell.com>
* camel-mbox-summary.c (summary_update, mbox_summary_check)
(mbox_summary_sync): Use g_stat() instead of plain stat() for full
Unicode pathname support on Win32. These instances had gone
unnoticed earlier.
-rw-r--r-- | camel/providers/local/ChangeLog | 7 | ||||
-rw-r--r-- | camel/providers/local/camel-mbox-summary.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/camel/providers/local/ChangeLog b/camel/providers/local/ChangeLog index 91ac721e3..d50e73d71 100644 --- a/camel/providers/local/ChangeLog +++ b/camel/providers/local/ChangeLog @@ -1,3 +1,10 @@ +2006-06-15 Tor Lillqvist <tml@novell.com> + + * camel-mbox-summary.c (summary_update, mbox_summary_check) + (mbox_summary_sync): Use g_stat() instead of plain stat() for full + Unicode pathname support on Win32. These instances had gone + unnoticed earlier. + 2006-06-09 Chris Heath <chris@heathens.co.nz> * camel-local-summary.c (message_info_new_from_header): Fix memory leak diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 9557a250c..308a76475 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -497,7 +497,7 @@ summary_update(CamelLocalSummary *cls, off_t offset, CamelFolderChangeInfo *chan /* update the file size/mtime in the summary */ if (ok != -1) { - if (stat(cls->folder_path, &st) == 0) { + if (g_stat(cls->folder_path, &st) == 0) { camel_folder_summary_touch(s); mbs->folder_size = st.st_size; s->time = st.st_mtime; @@ -521,7 +521,7 @@ mbox_summary_check(CamelLocalSummary *cls, CamelFolderChangeInfo *changes, Camel d(printf("Checking summary\n")); /* check if the summary is up-to-date */ - if (stat(cls->folder_path, &st) == -1) { + if (g_stat(cls->folder_path, &st) == -1) { camel_folder_summary_clear(s); camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot check folder: %s: %s"), @@ -867,7 +867,7 @@ mbox_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChangeInf if (ret == -1) return -1; - if (stat(cls->folder_path, &st) == -1) { + if (g_stat(cls->folder_path, &st) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("Unknown error: %s"), g_strerror (errno)); return -1; |