diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-08-06 23:12:47 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-06 23:12:47 +0800 |
commit | f3e57fa18f42e44f81f1eedc2db85a4125752d20 (patch) | |
tree | 023e8494846619a4ef4e109a580a8e720375b1e1 | |
parent | 9addfb95be696605fff7a292e8a81646b838d476 (diff) | |
download | gsoc2013-evolution-f3e57fa18f42e44f81f1eedc2db85a4125752d20.tar gsoc2013-evolution-f3e57fa18f42e44f81f1eedc2db85a4125752d20.tar.gz gsoc2013-evolution-f3e57fa18f42e44f81f1eedc2db85a4125752d20.tar.bz2 gsoc2013-evolution-f3e57fa18f42e44f81f1eedc2db85a4125752d20.tar.lz gsoc2013-evolution-f3e57fa18f42e44f81f1eedc2db85a4125752d20.tar.xz gsoc2013-evolution-f3e57fa18f42e44f81f1eedc2db85a4125752d20.tar.zst gsoc2013-evolution-f3e57fa18f42e44f81f1eedc2db85a4125752d20.zip |
stat was not testing the good file. Fixed.
1999-08-06 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/providers/MH/camel-mh-folder.c (_list_subfolders):
stat was not testing the good file. Fixed.
svn path=/trunk/; revision=1090
-rw-r--r-- | AUTHORS | 9 | ||||
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | camel/providers/MH/camel-mh-folder.c | 5 |
3 files changed, 16 insertions, 1 deletions
@@ -1 +1,10 @@ Bertrand Guiheneuf <Bertrand.Guiheneuf@aful.org> + Main author of Camel. + +Miguel de Icaza <miguel@gnu.org> + Base64 encoding in Camel. + +Robert Brady <rwb197@ecs.soton.ac.uk> + Unicode and RFC2047 support for Camel. + + @@ -1,5 +1,8 @@ 1999-08-06 bertrand <Bertrand.Guiheneuf@aful.org> + * camel/providers/MH/camel-mh-folder.c (_list_subfolders): + stat was not testing the good file. Fixed. + * tests/test4.c (main): added real test for MH folder provider. All tested things seem to work OK :) diff --git a/camel/providers/MH/camel-mh-folder.c b/camel/providers/MH/camel-mh-folder.c index e4bd6335c1..53554585c3 100644 --- a/camel/providers/MH/camel-mh-folder.c +++ b/camel/providers/MH/camel-mh-folder.c @@ -309,6 +309,7 @@ _list_subfolders(CamelFolder *folder) gint stat_error = 0; GList *file_list; gchar *entry_name; + gchar *full_entry_name; struct dirent *dir_entry; DIR *dir_handle; @@ -330,7 +331,9 @@ _list_subfolders(CamelFolder *folder) /* get the name of the next entry in the dir */ entry_name = dir_entry->d_name; - stat_error = stat (mh_folder->directory_path, &stat_buf); + full_entry_name = g_strdup_printf ("%s/%s", mh_folder->directory_path, entry_name); + stat_error = stat (full_entry_name, &stat_buf); + g_free (full_entry_name); /* is it a directory ? */ if ((stat_error != -1) && S_ISDIR (stat_buf.st_mode)) { |