Compatibility fix.
* libmailutils/mailbox/mbx_default.c (mu_normalize_mailbox_url): Append ${user} if URL ends with user=$user. Fixes 131ddb25.
Showing
1 changed file
with
1 additions
and
3 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment