From 9abf5be0962538e1f6f5c73c838ff677341da0c9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 9 Nov 2010 18:36:37 +0000 Subject: [PATCH] lib-storage: Fixed expanding "~" (without '/' afterwards) in mail_location --- src/lib-storage/mailbox-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-storage/mailbox-list.c b/src/lib-storage/mailbox-list.c index bbd19a0d9d..97827e134c 100644 --- a/src/lib-storage/mailbox-list.c +++ b/src/lib-storage/mailbox-list.c @@ -205,7 +205,7 @@ static int fix_path(struct mail_user *user, const char *path, if (len > 1 && path[len-1] == '/') path = t_strndup(path, len-1); - if (path[0] == '~' && path[1] != '/') { + if (path[0] == '~' && path[1] != '/' && path[1] != '\0') { /* ~otheruser/dir */ if (home_try_expand(&path) < 0) { *error_r = t_strconcat( -- 2.47.3