Skip to content

Commit

Permalink
ipa-rmkeytab, ipa-join: don't fail if init of gettext failed
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MartinBasti committed Jun 27, 2016
1 parent e136db0 commit a07030f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/ipa-join.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion client/ipa-rmkeytab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a07030f

Please sign in to comment.