X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Ffolder_read.c;h=35dc1950a4f7dde864da0ea93c444cc27cf5f639;hb=0c9207459097089a931399ff7d384884288bc4ac;hp=8ccffc503adaee01e327dbb156dc72c34f107c1e;hpb=0bfc482371bf63c4c312c749ba0bfc50483772ba;p=mmh 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