diff options
-rw-r--r-- | src/sss_client/ssh/sss_ssh_client.c | 4 | ||||
-rw-r--r-- | src/tools/tools_util.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/sss_client/ssh/sss_ssh_client.c b/src/sss_client/ssh/sss_ssh_client.c index 0d206ef58..a198039ec 100644 --- a/src/sss_client/ssh/sss_ssh_client.c +++ b/src/sss_client/ssh/sss_ssh_client.c @@ -50,7 +50,9 @@ int set_locale(void) c = setlocale(LC_ALL, ""); if (c == NULL) { - return EIO; + /* If setlocale fails, continue with the default + * locale. */ + DEBUG(SSSDBG_MINOR_FAILURE, "Unable to set locale\n"); } errno = 0; diff --git a/src/tools/tools_util.c b/src/tools/tools_util.c index 68f6588ea..f9dca7287 100644 --- a/src/tools/tools_util.c +++ b/src/tools/tools_util.c @@ -259,7 +259,9 @@ int set_locale(void) c = setlocale(LC_ALL, ""); if (c == NULL) { - return EIO; + /* If setlocale fails, continue with the default + * locale. */ + DEBUG(SSSDBG_MINOR_FAILURE, "Unable to set locale\n"); } errno = 0; |