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>
This commit is contained in:
Martin Basti
2016-06-24 17:34:02 +02:00
parent e136db0192
commit a07030f386
2 changed files with 2 additions and 2 deletions

View File

@@ -1130,7 +1130,7 @@ main(int argc, const char **argv) {
ret = init_gettext(); ret = init_gettext();
if (ret) { if (ret) {
exit(2); fprintf(stderr, "Failed to load translations\n");
} }
pc = poptGetContext("ipa-join", argc, (const char **)argv, options, 0); pc = poptGetContext("ipa-join", argc, (const char **)argv, options, 0);

View File

@@ -180,7 +180,7 @@ main(int argc, const char **argv)
ret = init_gettext(); ret = init_gettext();
if (ret) { if (ret) {
exit(1); fprintf(stderr, "Failed to load translations\n");
} }
memset(&ktid, 0, sizeof(ktid)); memset(&ktid, 0, sizeof(ktid));