https://fedorahosted.org/freeipa/ticket/5483

Patch attached.
From 16fcbab598a7d2b18a9b6ad2f625ca912a26abfa Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Tue, 24 Nov 2015 16:45:00 +0100
Subject: [PATCH] ipa-getkeytab: do not return error when translations cannot
 be loaded

Only warning is shown

https://fedorahosted.org/freeipa/ticket/5483
---
 ipa-client/ipa-getkeytab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipa-client/ipa-getkeytab.c b/ipa-client/ipa-getkeytab.c
index 15255d6a33c8c298f138868ac545d4ebea415fe5..a006b78a80166a2aa418e1221f2b80f32c872439 100644
--- a/ipa-client/ipa-getkeytab.c
+++ b/ipa-client/ipa-getkeytab.c
@@ -653,7 +653,7 @@ int main(int argc, const char *argv[])
 
     ret = init_gettext();
     if (ret) {
-        exit(1);
+        fprintf(stderr, "Failed to load translations\n");
     }
 
 	krberr = krb5_init_context(&krbctx);
-- 
2.5.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to