Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 May 2003 16:02:03 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Kirk McKusick <mckusick@beastie.mckusick.com>
Cc:        Jens Schweikhardt <schweikh@FreeBSD.org>
Subject:   Re: Access times on executables (kern/25777)
Message-ID:  <XFMail.20030505160203.jhb@FreeBSD.org>
In-Reply-To: <200305050617.h456HNTh017652@beastie.mckusick.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 05-May-2003 Kirk McKusick wrote:
> +             auio.uio_td = td;
> +             vn_lock(textvp, LK_EXCLUSIVE | LK_RETRY, td);
> +             (void) VOP_READ(textvp, &auio, 0, p->p_ucred);

This should use td->td_ucred instead of p->p_ucred.

> +             VOP_UNLOCK(textvp, 0, td);
> +     }
> + 

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



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