From: Tom Keiser Date: Fri, 15 Sep 2006 00:59:36 +0000 (+0000) Subject: STABLE14-uae-avoid-dups-20060914 X-Git-Tag: openafs-stable-1_4_2fc4~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c7b442cdcdf1ef31136b878b9f819bd394afc3e5;p=packages%2Fo%2Fopenafs.git STABLE14-uae-avoid-dups-20060914 avoid duplicates in the errno space so we don't return the wrong error (something unexpected) (cherry picked from commit 914b2e27dcf5b231832959d0b02dc1e40ca24c81) --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index aa574407c..0fda3353f 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -7395,9 +7395,13 @@ init_sys_error_to_et(void) sys2et[ENAMETOOLONG] = UAENAMETOOLONG; sys2et[ENOLCK] = UAENOLCK; sys2et[ENOSYS] = UAENOSYS; +#if (ENOTEMPTY != EEXIST) sys2et[ENOTEMPTY] = UAENOTEMPTY; +#endif sys2et[ELOOP] = UAELOOP; +#if (EWOULDBLOCK != EAGAIN) sys2et[EWOULDBLOCK] = UAEWOULDBLOCK; +#endif sys2et[ENOMSG] = UAENOMSG; sys2et[EIDRM] = UAEIDRM; sys2et[ECHRNG] = UAECHRNG;