mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-07 05:59:50 -05: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:
1 parent
e136db0192
commit
a07030f386
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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