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

Simo Sorce simo at redhat.com
Sat Jan 12 20:29:33 UTC 2013


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 61e5cb0e20a9f690ad26940992cefe17d20484c5..961fc42f400a502b7a8d2d9ee1422e858d8a9a09 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -263,7 +263,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