Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/nfs Pull up revision 1.118 (requested by yamt in ti...
details: https://anonhg.NetBSD.org/src/rev/bff7d52dd5b0
branches: netbsd-2-0
changeset: 561483:bff7d52dd5b0
user: tron <tron%NetBSD.org@localhost>
date: Mon Jun 21 10:10:09 2004 +0000
description:
Pull up revision 1.118 (requested by yamt in ticket #513):
nfs_doio_read: use np->n_rcred instead of curproc->p_ucred for VDIR.
XXX maybe it's better to use a cred passed by VOP_READDIR.
diffstat:
sys/nfs/nfs_bio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r cb4ccbd4cb13 -r bff7d52dd5b0 sys/nfs/nfs_bio.c
--- a/sys/nfs/nfs_bio.c Mon Jun 21 10:06:49 2004 +0000
+++ b/sys/nfs/nfs_bio.c Mon Jun 21 10:10:09 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_bio.c,v 1.116 2004/03/12 16:52:14 yamt Exp $ */
+/* $NetBSD: nfs_bio.c,v 1.116.2.1 2004/06/21 10:10:09 tron Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.116 2004/03/12 16:52:14 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.116.2.1 2004/06/21 10:10:09 tron Exp $");
#include "opt_nfs.h"
#include "opt_ddb.h"
@@ -931,12 +931,12 @@
nfsstats.readdir_bios++;
uiop->uio_offset = bp->b_dcookie;
if (nmp->nm_flag & NFSMNT_RDIRPLUS) {
- error = nfs_readdirplusrpc(vp, uiop, curproc->p_ucred);
+ error = nfs_readdirplusrpc(vp, uiop, np->n_rcred);
if (error == NFSERR_NOTSUPP)
nmp->nm_flag &= ~NFSMNT_RDIRPLUS;
}
if ((nmp->nm_flag & NFSMNT_RDIRPLUS) == 0)
- error = nfs_readdirrpc(vp, uiop, curproc->p_ucred);
+ error = nfs_readdirrpc(vp, uiop, np->n_rcred);
if (!error) {
bp->b_dcookie = uiop->uio_offset;
}
Home |
Main Index |
Thread Index |
Old Index