From: tholo Date: Fri, 3 May 1996 18:18:56 +0000 (+0000) Subject: Make it possible to have a commented-out local realm in krb.conf to allow X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f191e21f174dab5255cf7933fcf0b94fd49ca4a9;p=openbsd Make it possible to have a commented-out local realm in krb.conf to allow using Kerberos for remote authentication but not for local authentication --- diff --git a/kerberosIV/krb/get_krbrlm.c b/kerberosIV/krb/get_krbrlm.c index d6892a2ddfe..36e8549b14d 100644 --- a/kerberosIV/krb/get_krbrlm.c +++ b/kerberosIV/krb/get_krbrlm.c @@ -67,5 +67,5 @@ krb_get_lrealm(r, n) return(KFAILURE); } (void) fclose(cnffile); - return(KSUCCESS); + return(*r == '#' ? KFAILURE : KSUCCESS); }