uae-dont-translate-zero-20030424
authorNickolai Zeldovich <kolya@mit.edu>
Thu, 24 Apr 2003 20:21:31 +0000 (20:21 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Thu, 24 Apr 2003 20:21:31 +0000 (20:21 +0000)
Leave a zero return value as zero, rather than translating to UAEMEDIUMTYPE.

src/viced/afsfileprocs.c

index 586c64e..e66c8d4 100644 (file)
@@ -7150,6 +7150,7 @@ void init_sys_error_to_et(void) {
 }
 
 afs_int32 sys_error_to_et(afs_int32 in) {
+    if (in == 0) return 0;
     if (in < 0 || in > 511) return in;
     if (sys2et[in] != 0) return sys2et[in];
     return in;