dovecot-2.2: lib-storage: Fixed expanding path that ends with "~/"
dovecot at dovecot.org
dovecot at dovecot.org
Sun May 20 03:26:34 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/249c1c89d9d3
changeset: 14522:249c1c89d9d3
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 25 23:44:32 2012 +0300
description:
lib-storage: Fixed expanding path that ends with "~/"
For example mail_location=maildir:~/ would actually try to create '~'
directory.
diffstat:
src/lib-storage/mail-user.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c2038fb33633 -r 249c1c89d9d3 src/lib-storage/mail-user.c
--- a/src/lib-storage/mail-user.c Wed Apr 25 23:34:29 2012 +0300
+++ b/src/lib-storage/mail-user.c Wed Apr 25 23:44:32 2012 +0300
@@ -343,7 +343,7 @@
{
const char *home, *path = *pathp;
- if (strncmp(path, "~/", 2) != 0) {
+ if (*path != '~') {
/* no need to expand home */
return 0;
}
More information about the dovecot-cvs
mailing list