From 4414caacf654e480d3cedbca41ec6e8a2033080f Mon Sep 17 00:00:00 2001 From: Eric Melski Date: Mon, 18 Oct 2004 05:30:39 +0000 Subject: [PATCH] STABLE12-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 (cherry picked from commit 512f3b0555c10d26ea6b05695471481df11fe1c9) --- src/afs/SOLARIS/osi_vnodeops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/afs/SOLARIS/osi_vnodeops.c b/src/afs/SOLARIS/osi_vnodeops.c index fe5ed936d..c76701e90 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -926,10 +926,10 @@ struct AFS_UCRED *acred; didFakeOpen=0; /* keep track of open so we can do close */ if (arw == UIO_WRITE) { - /* 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) { + /* 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_loffset >= auio->uio_llimit) { ReleaseWriteLock(&avc->lock); afs_BozonUnlock(&avc->pvnLock, avc); return EFBIG; -- 2.39.5