git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
bfc8841
)
viced-revert-EIO-and-instead-use-zero-length-20040311
author
Nathan Neulinger
<nneul@umr.edu>
Thu, 11 Mar 2004 07:15:52 +0000 (07:15 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Thu, 11 Mar 2004 07:15:52 +0000 (07:15 +0000)
FIXES 3594
this was the other considered approach, i'm unsure why it's needed,
but we'll play along for now.
src/viced/afsfileprocs.c
patch
|
blob
|
history
diff --git
a/src/viced/afsfileprocs.c
b/src/viced/afsfileprocs.c
index
6acbf12
..
da04b22
100644
(file)
--- a/
src/viced/afsfileprocs.c
+++ b/
src/viced/afsfileprocs.c
@@
-6676,10
+6676,13
@@
FetchData_RXStyle(Volume * volptr, Vnode * targetptr,
tlen = FDH_SIZE(fdP);
ViceLog(25,
("FetchData_RXStyle: file size %llu\n", (afs_uintmax_t) tlen));
- if ((tlen < 0) || (Pos > tlen)) {
+ if (tlen < 0) {
FDH_CLOSE(fdP);
return EIO;
}
+ if (Pos > tlen) {
+ Len = 0;
+ }
if (Pos + Len > tlen)
Len = tlen - Pos; /* get length we should send */