X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FSOLARIS%2Fosi_file.c;h=b497b631cb44e5d575a31f809bc7470ce2c829fb;hp=f066618118500435abf946485822c44d6dfaec6d;hb=b5ca12ac4696c4049be14974f1e946bb55e1c440;hpb=456ee898ae77b201275363f4efc0098c28e195d5 diff --git a/src/afs/SOLARIS/osi_file.c b/src/afs/SOLARIS/osi_file.c index f066618..b497b63 100644 --- a/src/afs/SOLARIS/osi_file.c +++ b/src/afs/SOLARIS/osi_file.c @@ -381,7 +381,9 @@ afs_osi_Read(struct osi_file *afile, int offset, void *aptr, } else { afs_Trace2(afs_iclSetp, CM_TRACE_READFAILED, ICL_TYPE_INT32, resid, ICL_TYPE_INT32, code); - code = -1; + if (code > 0) { + code *= -1; + } } return code; } @@ -409,7 +411,9 @@ afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr, code = asize - resid; afile->offset += code; } else { - code = -1; + if (code > 0) { + code *= -1; + } } if (afile->proc) { (*afile->proc) (afile, code);