]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
bugfix
authorTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 04:34:30 +0000 (07:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 04:34:30 +0000 (07:34 +0300)
--HG--
branch : HEAD

src/auth/master-connection.c
src/master/mail-process.c

index 4e4be63a7f0d69f216fdba6ffcd8f637e90198e2..f0eff3d3f8695e41ce93d975e2d9691169e8bf0e 100644 (file)
@@ -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 <chroot>/./<home> */
-               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);
index 9fde9b7343d7ab3547b20a6052881584e77613eb..4862d36e36e104b21b201fb0dd941c69ac9364ee 100644 (file)
@@ -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;
        }