mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user