From 512f3b0555c10d26ea6b05695471481df11fe1c9 Mon Sep 17 00:00:00 2001 From: Eric Melski Date: Wed, 13 Oct 2004 02:04:55 +0000 Subject: [PATCH] solaris-fix-ulimit-write-size-bug-20041012 FIXES 15609 convert nonsensical comparison to one which makes sense in light of code and comments below it --- 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 d86fbbe78..07600f8c9 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -1069,7 +1069,7 @@ afs_nfsrdwr(avc, auio, arw, ioflag, acred) /* do ulimit processing; shrink resid or fail */ #if defined(AFS_SUN56_ENV) if (auio->uio_loffset + auio->afsio_resid > auio->uio_llimit) { - if (auio->uio_llimit >= auio->uio_llimit) { + if (auio->uio_loffset >= auio->uio_llimit) { ReleaseWriteLock(&avc->lock); afs_BozonUnlock(&avc->pvnLock, avc); return EFBIG; -- 2.39.5