X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FHPUX%2Fosi_file.c;h=59c2594af7c5b1b157095a4013022b4a95bda142;hp=2afe1da6e08c024b1c4ab704f856ea5d177facd8;hb=b5ca12ac4696c4049be14974f1e946bb55e1c440;hpb=456ee898ae77b201275363f4efc0098c28e195d5 diff --git a/src/afs/HPUX/osi_file.c b/src/afs/HPUX/osi_file.c index 2afe1da..59c2594 100644 --- a/src/afs/HPUX/osi_file.c +++ b/src/afs/HPUX/osi_file.c @@ -177,7 +177,9 @@ afs_osi_Read(struct osi_file *afile, int offset, void *aptr, goto retry_IO; } setuerror(code); - code = -1; + if (code > 0) { + code *= -1; + } } return code; } @@ -208,7 +210,9 @@ afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr, afs_warnuser ("\n\n\n*** Cache partition is FULL - Decrease cachesize!!! ***\n\n"); setuerror(code); - code = -1; + if (code > 0) { + code *= -1; + } } if (afile->proc) { (*afile->proc) (afile, code);