From 7416350985477964cbecf25b3d826e4a4487255e Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Wed, 27 Dec 1995 02:16:48 +0000 Subject: Only warn about non-kerberos protocol if kerberos has been configured with a local realm (/etc/kerberosIV/krb.conf is set up). --- bin/rcp/rcp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/rcp') diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index 2e7b51729e9..e340f432ad2 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -860,7 +860,11 @@ oldw(fmt, va_alist) va_dcl #endif { + char realm[REALM_SZ]; va_list ap; + + if (krb_get_lrealm(realm, 1) != KSUCCESS) + return; #if __STDC__ va_start(ap, fmt); #else -- cgit v1.2.3