summaryrefslogtreecommitdiffstats
path: root/bin/rcp/rcp.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1998-10-09 06:31:45 +0000
committermarkm <markm@FreeBSD.org>1998-10-09 06:31:45 +0000
commit79f5d6d3ccabbef03bb521b83cf0c5633862e5e6 (patch)
tree1b4541058ff4216be6ae3726d3f002a5205758cd /bin/rcp/rcp.c
parent927ef14a2ff9d6f8955bac66c59718ecd5cce17b (diff)
downloadFreeBSD-src-79f5d6d3ccabbef03bb521b83cf0c5633862e5e6.zip
FreeBSD-src-79f5d6d3ccabbef03bb521b83cf0c5633862e5e6.tar.gz
Add JKH's auth.conf-file parser to turn Kerberos on/off in userland.
Diffstat (limited to 'bin/rcp/rcp.c')
-rw-r--r--bin/rcp/rcp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index 9af02d8..007741b 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -42,7 +42,7 @@ static char const copyright[] =
static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
- "$Id: rcp.c,v 1.19 1998/05/18 06:36:03 charnier Exp $";
+ "$Id: rcp.c,v 1.20 1998/08/02 14:25:24 bde Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -66,6 +66,7 @@ static const char rcsid[] =
#include <string.h>
#include <string.h>
#include <unistd.h>
+#include <libutil.h>
#include "pathnames.h"
#include "extern.h"
@@ -123,6 +124,9 @@ main(argc, argv)
int ch, fflag, tflag;
char *targ, *shell;
int i;
+#ifdef KERBEROS
+ char *k;
+#endif
/*
* Prepare for execing ourselves.
@@ -188,6 +192,9 @@ main(argc, argv)
argv += optind;
#ifdef KERBEROS
+ k = auth_getval("auth_list");
+ if (k && !strstr(k, "kerberos"))
+ use_kerberos = 0;
if (use_kerberos) {
#ifdef CRYPT
shell = doencrypt ? "ekshell" : "kshell";
OpenPOWER on IntegriCloud