X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_read.c;h=35dc1950a4f7dde864da0ea93c444cc27cf5f639;hp=8ccffc503adaee01e327dbb156dc72c34f107c1e;hb=30292c537fe4eab052f303f1d3179c0e2fd037d8;hpb=0bfc482371bf63c4c312c749ba0bfc50483772ba diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 8ccffc5..35dc195 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -38,6 +38,7 @@ folder_read(char *name) if (stat(name, &st) == -1) { free(name); + closedir(dd); return NULL; } @@ -101,9 +102,6 @@ folder_read(char *name) switch (dp->d_name[0]) { case '.': case ',': -#ifdef MHE - case '+': -#endif /* MHE */ continue; default: @@ -115,10 +113,6 @@ folder_read(char *name) prefix_len)==0) continue; - /* skip the altmsg link file */ - if (strcmp(dp->d_name, altmsglink)==0) - continue; - /* ** indicate that there are other ** files in folder