[SSSD] [PATCH 3/4] Return ERR_INTERNAL instead of EIO

Simo Sorce simo at redhat.com
Sat Nov 24 04:58:25 UTC 2012


EIO has always been an odd match, but was used as an error to indicate
that something had gone wrong internally before we had specific SSSD
errors available. Use ERR_INTERNAL instead going forward.
---
 src/util/util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/util.h b/src/util/util.h
index 879569a97dc06987cbbc58014b3edeac07447595..f7c36bbd3bc8be50cb32d4c2c4c40d66b96ec9d9 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -264,7 +264,7 @@ errno_t set_debug_file_from_fd(const int fd);
         if (TRROEstate == TEVENT_REQ_USER_ERROR) { \
             return TRROEerr; \
         } \
-        return EIO; \
+        return ERR_INTERNAL; \
     } \
 } while (0)
 
-- 
1.7.1




More information about the sssd-devel mailing list