+2009-06-02 17:05 +0200 Rocco Rutte <pdmef@gmx.net> (9ca14dff45c5)
+
+ * smtp.c: Fix array size
+
+2009-06-02 15:43 +0200 Rocco Rutte <pdmef@gmx.net> (df4a17222b03)
+
+ * ChangeLog, buffy.c: Thoroughly check for duplicates when parsing
+ 'mailboxes' command. Closes #1428.
+
2009-06-01 14:50 +0200 Rocco Rutte <pdmef@gmx.net> (7a277ba306c9)
* gnupgparse.c: Use mutt_atoi() when parsing GnuPG output. Closes
char buf[_POSIX_PATH_MAX];
struct stat sb;
char f1[PATH_MAX], f2[PATH_MAX];
+ char *p, *q;
while (MoreArgs (s))
{
/* Skip empty tokens. */
if(!*buf) continue;
- if (!realpath (buf, f1))
- continue;
-
/* avoid duplicates */
+ p = realpath (buf, f1);
for (tmp = &Incoming; *tmp; tmp = &((*tmp)->next))
{
- if (!realpath ((*tmp)->path, f2))
- continue;
- if (mutt_strcmp (f1, f2) == 0)
+ q = realpath ((*tmp)->path, f2);
+ if (mutt_strcmp (p ? p : buf, q ? q : (*tmp)->path) == 0)
{
dprint(3,(debugfile,"mailbox '%s' already registered as '%s'\n", buf, (*tmp)->path));
break;