From: Martti Rannanjärvi Date: Thu, 28 Apr 2016 07:06:21 +0000 (+0300) Subject: lib-fs: don't append '/' to prefix in posix-fs X-Git-Tag: 2.3.0.rc1~3894 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e08a3c92eb9470296ea2d6b1834179c8564f3d1f;p=thirdparty%2Fdovecot%2Fcore.git lib-fs: don't append '/' to prefix in posix-fs --- diff --git a/src/lib-fs/fs-posix.c b/src/lib-fs/fs-posix.c index ddd9ccb687..b690c27b99 100644 --- a/src/lib-fs/fs-posix.c +++ b/src/lib-fs/fs-posix.c @@ -96,12 +96,8 @@ fs_posix_init(struct fs *_fs, const char *args, const struct fs_settings *set) else if (strcmp(arg, "lock=dotlock") == 0) fs->lock_method = FS_POSIX_LOCK_METHOD_DOTLOCK; else if (strncmp(arg, "prefix=", 7) == 0) { - unsigned int len = strlen(arg + 7); i_free(fs->path_prefix); - if (len > 0 && arg[7+len-1] != '/') - fs->path_prefix = i_strconcat(arg + 7, "/", NULL); - else - fs->path_prefix = i_strdup(arg + 7); + fs->path_prefix = i_strdup(arg + 7); } else if (strcmp(arg, "mode=auto") == 0) { fs->mode_auto = TRUE; } else if (strncmp(arg, "mode=", 5) == 0) {