[evolution-data-server/meego-eds] Fix in get_folder_info where local's subdir wasn't returned well if queried for a specific folder.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/meego-eds] Fix in get_folder_info where local's subdir wasn't returned well if queried for a specific folder.
- Date: Wed, 29 Jun 2011 19:19:15 +0000 (UTC)
commit cfd1a6b37ec6243f656014a3c68bf9b413302d5c
Author: Srinivasa Ragavan <srini linux intel com>
Date: Wed Jun 29 02:45:42 2011 +0300
Fix in get_folder_info where local's subdir wasn't returned well if queried for a specific folder.
camel/providers/local/camel-mbox-store.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c
index a3d66be..c2954fb 100644
--- a/camel/providers/local/camel-mbox-store.c
+++ b/camel/providers/local/camel-mbox-store.c
@@ -845,8 +845,15 @@ get_folder_info(CamelStore *store, const gchar *top, guint32 flags, GError **err
/* requesting scan of specific folder */
if (g_stat(path, &st) == -1 || !S_ISREG(st.st_mode)) {
- g_free(path);
- return NULL;
+ char *test_if_subdir = g_strdup_printf("%s.sbd", path);
+
+ if (g_stat(test_if_subdir, &st) == -1) {
+ g_free(path);
+ g_free (test_if_subdir);
+ return NULL;
+ }
+ g_free (test_if_subdir);
+
}
visited = g_hash_table_new(inode_hash, inode_equal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]