From: Timo Sirainen Date: Thu, 8 May 2003 04:34:30 +0000 (+0300) Subject: bugfix X-Git-Tag: 1.1.alpha1~4662 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ecf7a5be7cad8d5934a28fb20db29b85453a26c;p=thirdparty%2Fdovecot%2Fcore.git bugfix --HG-- branch : HEAD --- diff --git a/src/auth/master-connection.c b/src/auth/master-connection.c index 4e4be63a7f..f0eff3d3f8 100644 --- a/src/auth/master-connection.c +++ b/src/auth/master-connection.c @@ -60,8 +60,8 @@ fill_reply(const struct user_data *user, size_t *reply_size) reply->chroot_idx = reply_add(buf, NULL); } else { /* wu-ftpd like /./ */ - reply->home_idx = reply_add(buf, t_strdup_until(user->home, p)); - reply->chroot_idx = reply_add(buf, p + 3); + reply->chroot_idx = reply_add(buf, t_strdup_until(user->home, p)); + reply->home_idx = reply_add(buf, p + 3); } *reply_size = buffer_get_used_size(buf); diff --git a/src/master/mail-process.c b/src/master/mail-process.c index 9fde9b7343..4862d36e36 100644 --- a/src/master/mail-process.c +++ b/src/master/mail-process.c @@ -121,7 +121,7 @@ int create_mail_process(int socket, struct ip_addr *ip, home_dir = data + reply->home_idx; chroot_dir = data + reply->chroot_idx; - if (*chroot_dir != '\0' && validate_chroot(chroot_dir)) { + if (*chroot_dir != '\0' && !validate_chroot(chroot_dir)) { i_error("Invalid chroot directory: %s", chroot_dir); return FALSE; }