From 6742f2054ac96bcec19c01d408542c94de9a55f1 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Thu, 22 Jan 2009 21:49:03 +0000 Subject: [PATCH] fbsd-ustrategy-20090122 LICENSE IPL10 make freebsd ustrategy correct --- src/afs/FBSD/osi_vnodeops.c | 2 +- src/afs/afs_prototypes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afs/FBSD/osi_vnodeops.c b/src/afs/FBSD/osi_vnodeops.c index 2b401de8f..146e09fc9 100644 --- a/src/afs/FBSD/osi_vnodeops.c +++ b/src/afs/FBSD/osi_vnodeops.c @@ -1558,7 +1558,7 @@ afs_vop_strategy(ap) { int error; AFS_GLOCK(); - error = afs_ustrategy(ap->a_bp); + error = afs_ustrategy(ap->a_bp, osi_cred()); AFS_GUNLOCK(); return error; } diff --git a/src/afs/afs_prototypes.h b/src/afs/afs_prototypes.h index 1c62cc08a..afc12d7a3 100644 --- a/src/afs/afs_prototypes.h +++ b/src/afs/afs_prototypes.h @@ -1204,7 +1204,7 @@ extern int afs_rename(OSI_VC_DECL(aodp), char *aname1, struct vcache *andp, #endif /* VNOPS/afs_vnop_strategy.c */ -#if defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) +#if defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) extern int afs_ustrategy(register struct buf *adp, struct AFS_UCRED *credp); #else extern int afs_ustrategy(register struct buf *adp); -- 2.39.5