From 471a9abd7c53faf51b4ab83214c1216048d685cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Groenvall?= Date: Thu, 4 Jan 1996 15:59:23 +0000 Subject: [PATCH] If k_afsklog() returns KDC_PR_UNKNOWN one should not always report an error if inter realm authetication isn't enabled. Fixed this in kauth, su an xnlock. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@210 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/xnlock/xnlock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appl/xnlock/xnlock.c b/appl/xnlock/xnlock.c index 7a8f85cac..5b73cf613 100644 --- a/appl/xnlock/xnlock.c +++ b/appl/xnlock/xnlock.c @@ -584,7 +584,8 @@ GetPasswd(Widget w, XEvent *_event, String *_s, Cardinal *_n) int code; if (k_hasafs()) { - if ((code = k_afsklog(NULL, realm)) != KSUCCESS) + if ((code = k_afsklog(NULL, realm)) != KSUCCESS + && code != KDC_PR_UNKNOWN) fprintf(stderr, "%s: Warning %s\n", ProgName,