diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-05-08 00:47:01 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-05-08 00:47:01 +0000 |
| commit | 99b82bb76a54abea9a9c36de152579f5f6a64f03 (patch) | |
| tree | a9177752eedd56dd4dc85c2061db80a29c678464 /bin/rcp/rcp.c | |
| parent | 57b7631cb8d99125bfc0e2a1747cd0cdf3779a58 (diff) | |
Notes
Diffstat (limited to 'bin/rcp/rcp.c')
| -rw-r--r-- | bin/rcp/rcp.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index 3cc6ceb86e02..8f0a01d4c62c 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -1,6 +1,13 @@ /* * Copyright (c) 1983, 1990, 1992, 1993 * The Regents of the University of California. All rights reserved. + * Copyright (c) 2002 Networks Associates Technology, Inc. + * All rights reserved. + * + * Portions of this software were developed for the FreeBSD Project by + * ThinkSec AS and NAI Labs, the Security Research Division of Network + * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 + * ("CBOSS"), as part of the DARPA CHATS research program. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -61,6 +68,7 @@ static const char rcsid[] = #include <libutil.h> #include <limits.h> #include <netdb.h> +#include <paths.h> #include <pwd.h> #include <signal.h> #include <stdio.h> @@ -69,7 +77,6 @@ static const char rcsid[] = #include <string.h> #include <unistd.h> -#include "pathnames.h" #include "extern.h" #ifdef KERBEROS @@ -80,7 +87,7 @@ static const char rcsid[] = char dst_realm_buf[REALM_SZ]; char *dest_realm = NULL; int use_kerberos = 1; -CREDENTIALS cred; +CREDENTIALS cred; Key_schedule schedule; extern char *krb_realmofhost(); #ifdef CRYPT @@ -429,7 +436,7 @@ source(int argc, char *argv[]) char *last, *name, buf[BUFSIZ]; for (indx = 0; indx < argc; ++indx) { - name = argv[indx]; + name = argv[indx]; if ((fd = open(name, O_RDONLY, 0)) < 0) goto syserr; if (fstat(fd, &stb)) { |
