From f1454a2885c410f5e886fa136a61c70cc06d42df Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Thu, 29 Sep 2005 21:34:55 +0000 Subject: [PATCH] solaris-init-offset-for-write-20050929 passing a random nlen into afs_GetDCache() when in write mode seems to sometimes trigger overwrites. --- src/afs/SOLARIS/osi_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/SOLARIS/osi_vnodeops.c b/src/afs/SOLARIS/osi_vnodeops.c index d4c059087..08ee7af75 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -266,7 +266,7 @@ afs_GetOnePage(vp, off, alen, protp, pl, plsz, seg, addr, rw, acred) register struct dcache *tdc; int i, s, pexists; int slot; - afs_size_t offset, nlen; + afs_size_t offset = 0, nlen; struct vrequest treq; afs_int32 mapForRead = 0, Code = 0; u_offset_t toffset; -- 2.39.5