X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FAIX%2Fosi_file.c;h=7ecaaf2376f14a20b0ae6753d739608ed25e363b;hp=0efcbaba1f7a5f7fac9d6c916ec1368774b744fc;hb=b5ca12ac4696c4049be14974f1e946bb55e1c440;hpb=456ee898ae77b201275363f4efc0098c28e195d5 diff --git a/src/afs/AIX/osi_file.c b/src/afs/AIX/osi_file.c index 0efcbab..7ecaaf2 100644 --- a/src/afs/AIX/osi_file.c +++ b/src/afs/AIX/osi_file.c @@ -198,7 +198,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; } @@ -241,7 +243,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);