Commit 2c419ba0 2c419ba0d194b5b00e6c2e3deae15cb593c8569d by Sergey Poznyakoff

Compatibility fix.

* libmailutils/mailbox/mbx_default.c (mu_normalize_mailbox_url):
Append ${user} if URL ends with user=$user.  Fixes 131ddb25.
1 parent 18bc3599
...@@ -62,9 +62,7 @@ mu_normalize_mailbox_url (char **pout, const char *dir) ...@@ -62,9 +62,7 @@ mu_normalize_mailbox_url (char **pout, const char *dir)
62 len = strlen (dir); 62 len = strlen (dir);
63 if (dir[len-1] == '=') 63 if (dir[len-1] == '=')
64 { 64 {
65 if (len > 5 && strcmp (dir + len - 5, "user=") == 0) 65 if (!(len > 5 && strcmp (dir + len - 5, "user=") == 0))
66 *pout = strdup (dir);
67 else
68 return MU_ERR_BAD_FILENAME; 66 return MU_ERR_BAD_FILENAME;
69 } 67 }
70 else 68 else
......