+2008-07-02 18:23 +0200 Rocco Rutte <pdmef@gmx.net> (7783502a04c7)
+
+ * curs_main.c: Calculate menu->max after a possible resort in index
+ (maybe changing number of messages). Closes #3088.
+
+2008-07-02 18:08 +0200 Rocco Rutte <pdmef@gmx.net> (f41ba27be46f)
+
+ * ChangeLog, curs_lib.c: Fix casts for progress update to prevent
+ -ftrapv aborts to trigger. Closes #3018.
+
2008-07-02 08:56 -0700 Brendan Cully <brendan@kublai.com> (c51c16db46cc)
* crypt-gpgme.c: Only make LC_MESSAGES conditional on NLS in GPGME
#include <sys/stat.h>
#include <fcntl.h>
#include <pwd.h>
+#include <sys/types.h>
#include <dirent.h>
#ifdef HAVE_SYSEXITS_H
DIR* dirp;
struct dirent* de;
char cur[_POSIX_PATH_MAX];
+ struct stat statbuf;
int rc = 0;
if (!(dirp = opendir (path)))
snprintf (cur, sizeof (cur), "%s/%s", path, de->d_name);
/* XXX make nonrecursive version */
- if (de->d_type == DT_DIR)
+
+ if (stat(cur, &statbuf) == -1)
+ {
+ rc = 1;
+ continue;
+ }
+
+ if (S_ISDIR (statbuf.st_mode))
rc |= mutt_rmtree (cur);
else
rc |= unlink (cur);