]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
We didn't log if chroot directory was invalid.
authorTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 03:35:48 +0000 (06:35 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 03:35:48 +0000 (06:35 +0300)
--HG--
branch : HEAD

src/master/mail-process.c

index 3aca9a62c8cfa921d2c48aadef22646098fff655..26b94cf1f7e1d506b39c153558c590ed6b6a7a85 100644 (file)
@@ -118,8 +118,10 @@ int create_mail_process(int socket, struct ip_addr *ip,
        if (!validate_uid_gid(reply->uid, reply->gid))
                return FALSE;
 
-       if (reply->chroot && !validate_chroot(data + reply->home_idx))
+       if (reply->chroot && !validate_chroot(data + reply->home_idx)) {
+               i_error("Invalid chroot directory: %s", data + reply->home_idx);
                return FALSE;
+       }
 
        pid = fork();
        if (pid < 0) {