summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1995-12-27 02:16:48 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1995-12-27 02:16:48 +0000
commit7416350985477964cbecf25b3d826e4a4487255e (patch)
treefb958a81cddfe7606367ffe8091738c7b820b086
parent2058717a3e9a7d3b640872b565fa1424b6ebc437 (diff)
Only warn about non-kerberos protocol if kerberos has been configured with
a local realm (/etc/kerberosIV/krb.conf is set up).
-rw-r--r--bin/rcp/rcp.c4
1 files changed, 4 insertions, 0 deletions
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