]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-uae-avoid-dups-20060914
authorTom Keiser <tkeiser@gmail.com>
Fri, 15 Sep 2006 00:59:36 +0000 (00:59 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 15 Sep 2006 00:59:36 +0000 (00:59 +0000)
avoid duplicates in the errno space so we don't return the wrong error (something unexpected)

(cherry picked from commit 914b2e27dcf5b231832959d0b02dc1e40ca24c81)

src/viced/afsfileprocs.c

index aa574407c3795e098f79dcb75e73bdc2fbaf3bf9..0fda3353fac91a214e854c4980cbff0e76e15c6f 100644 (file)
@@ -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;