Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2013 18:24:13 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Konstantin Belousov <kib@FreeBSD.org>
Cc:        svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   Re: svn commit: r254444 - stable/9/sys/kern
Message-ID:  <20130817162412.GA42997@stack.nl>
In-Reply-To: <201308170831.r7H8VYOt019997@svn.freebsd.org>
References:  <201308170831.r7H8VYOt019997@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 17, 2013 at 08:31:34AM +0000, Konstantin Belousov wrote:
> Author: kib
> Date: Sat Aug 17 08:31:34 2013
> New Revision: 254444
> URL: http://svnweb.freebsd.org/changeset/base/254444

> Log:
>   MFC r253969:
>   Do not override the ENOENT error for the empty path, or EFAULT errors
>   from copyins, with the relative lookup check.

> Modified:
>   stable/9/sys/kern/vfs_lookup.c
> Directory Properties:
>   stable/9/sys/   (props changed)

> Modified: stable/9/sys/kern/vfs_lookup.c
> ==============================================================================
> --- stable/9/sys/kern/vfs_lookup.c	Sat Aug 17 08:08:58 2013	(r254443)
> +++ stable/9/sys/kern/vfs_lookup.c	Sat Aug 17 08:31:34 2013	(r254444)
> @@ -175,7 +175,7 @@ namei(struct nameidata *ndp)
>  	 * not an absolute path, and not containing '..' components) to
>  	 * a real file descriptor, not the pseudo-descriptor AT_FDCWD.
>  	 */
> -	if (IN_CAPABILITY_MODE(td)) {
> +	if (error = 0 && IN_CAPABILITY_MODE(td)) {
>  		ndp->ni_strictrelative = 1;
>  		if (ndp->ni_dirfd == AT_FDCWD)
>  			error = ECAPMODE;

I take it this should be error == 0 instead of error = 0?

-- 
Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130817162412.GA42997>