diff options
| author | Martin Basti <mbasti@redhat.com> | 2016-06-24 17:34:02 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-06-27 12:34:18 +0200 |
| commit | a07030f3867168969d32f0f46e792ae0697529bc (patch) | |
| tree | 545a7d66112d53b33f37668853aae40b10dd74cd /client | |
| parent | e136db019210e3e373fe96fe8331976c93b166f3 (diff) | |
| download | freeipa-a07030f3867168969d32f0f46e792ae0697529bc.tar.gz freeipa-a07030f3867168969d32f0f46e792ae0697529bc.tar.xz freeipa-a07030f3867168969d32f0f46e792ae0697529bc.zip | |
ipa-rmkeytab, ipa-join: don't fail if init of gettext failed
If locale setting was incorect, gettext failed to initialize and scripts
failed. this commit replaces error exit with warning message. (Better to
have untranslated output than fail)
https://fedorahosted.org/freeipa/ticket/5973
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'client')
| -rw-r--r-- | client/ipa-join.c | 2 | ||||
| -rw-r--r-- | client/ipa-rmkeytab.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/client/ipa-join.c b/client/ipa-join.c index ac8251fef..837e7ce39 100644 --- a/client/ipa-join.c +++ b/client/ipa-join.c @@ -1130,7 +1130,7 @@ main(int argc, const char **argv) { ret = init_gettext(); if (ret) { - exit(2); + fprintf(stderr, "Failed to load translations\n"); } pc = poptGetContext("ipa-join", argc, (const char **)argv, options, 0); diff --git a/client/ipa-rmkeytab.c b/client/ipa-rmkeytab.c index 3687b1dc7..e3d9eedc4 100644 --- a/client/ipa-rmkeytab.c +++ b/client/ipa-rmkeytab.c @@ -180,7 +180,7 @@ main(int argc, const char **argv) ret = init_gettext(); if (ret) { - exit(1); + fprintf(stderr, "Failed to load translations\n"); } memset(&ktid, 0, sizeof(ktid)); |
