git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d566c1c
)
solaris-fix-ulimit-write-size-bug-20041012
author
Eric Melski
<ericm@electric-cloud.com>
Wed, 13 Oct 2004 02:04:55 +0000 (
02:04
+0000)
committer
Derrick Brashear
<shadow@dementia.org>
Wed, 13 Oct 2004 02:04:55 +0000 (
02:04
+0000)
FIXES 15609
convert nonsensical comparison to one which makes sense in light of code and
comments below it
src/afs/SOLARIS/osi_vnodeops.c
patch
|
blob
|
history
diff --git
a/src/afs/SOLARIS/osi_vnodeops.c
b/src/afs/SOLARIS/osi_vnodeops.c
index
d86fbbe
..
07600f8
100644
(file)
--- 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;