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 committed 2016-06-27 12:34:18 +02:00
1 parent e136db0192
commit a07030f386
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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));