History log of /freebsd-10.3-release/bin/rcp/rcp.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 296373 04-Mar-2016 marius

- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.3.
- Update default pkg(8) configuration to use the quarterly branch.

Approved by: re (implicit)

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 241720 19-Oct-2012 ed

Fix warnings found by -Wmising-variable-declarations.

This self-written compiler warning, which is hopefully going to be
committed into LLVM sources soon, warns about potentially missing
`static' keywords, similar to -Wmissing-prototypes.

- bin/pax: Move external declaration of chdname and s_mask into extern.h.
- bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h.
- sbin/mount_fusefs: Remove char *progname; use getprogname().
- others: add `static' where possible.


# 235565 17-May-2012 marcel

Remove unused header (libutil.h)


# 223494 24-Jun-2011 kevlo

Remove duplicated header files


# 205793 28-Mar-2010 ed

Change all our own code to use st_*tim instead of st_*timespec.

Also remove some local patches to diff(1) which are now unneeded.


# 184418 28-Oct-2008 rdivacky

Remove superfluous va_end which was left there in rev 1.38.

Approved by: kib (mentor)


# 169848 22-May-2007 cperciva

In the error handling path, don't call close(fd) if the error we're
handling is that fd = open(foo) is -1. This bug is harmless since
close(-1) just returns an error (which the code ignores).

Found by: Coverity Prevent(tm)
CID: 1503 (in userland test run)


# 141578 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 139965 10-Jan-2005 imp

Remove the clause 3, per berkeley and mail from rwatson representing
that nai was OK with all third clause removals.


# 121095 14-Oct-2003 markm

Turn malloc+snprintf into asnprintf.

Submitted by: David Hill <hill at phobia dot em ess>


# 114583 03-May-2003 markm

Fix a bazillion warnings. This makes almost the whole of src/bin/*
WARNS=6, std=c99 clean.

Tested on: i386, alpha


# 114509 02-May-2003 obrien

Make count a size_t as that is what is compared against and how it is used.


# 114433 01-May-2003 obrien

Quiet warnings about copyright[].


# 105269 16-Oct-2002 markm

Dekerberise. The corresponding userland stuff has been dekerberised
for ages, and no-one seems to have noticed. Viva PAM!


# 104563 06-Oct-2002 tjr

Clean up use of <stdarg.h> macros: always call va_end after va_start,
reset with a call to va_start before each use of the va_list.

Obtained from: NetBSD


# 104559 06-Oct-2002 charnier

While removing a memory leak, rev 1.32 introduced a
free-memory-and-reuse-it-after. Correct both problems and
make rcp -r work again under /etc/malloc.conf -> AJ.


# 104549 06-Oct-2002 tjr

Use %jd in format string and cast argument to intmax_t instead of using
%qd to print struct stat.st_size. Remove WARNS=0 and WFORMAT=0 from
Makefile.

Tested on: alpha, sparc64, i386


# 101591 09-Aug-2002 ume

IPv6 support for rcp.
You cannot specify a raw IPv6 address for now.

MFC after: 1 week


# 99744 10-Jul-2002 dillon

err() is documented as allowing NULL for the format string but GCC isn't
happy about it any more so change the usage to make buildworld work again.


# 99110 30-Jun-2002 obrien

Consistently use FBSDID


# 98468 20-Jun-2002 jmallett

Use size_t consistently and complete some uncompleted code resulting in a
memory leak by assigning and freeing a variable appropriately as well as
keeping track of the amount of allocated ram properly.

MFC after: 1 month


# 96196 08-May-2002 des

Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.

Sponsored by: DARPA, NAI Labs


# 90110 02-Feb-2002 imp

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.


# 77491 30-May-2001 pirzyk

Fixed two bugs, first not allowing '.' as a valid login name character
in okname() in util.c and second, returning != 0 when you do have an
error from okname in two places in rcp.c.

Thanks to Garrett for the POSIX defintion of valid login and group names.

PR: bin/25757
MFC after: 3 weeks


# 77462 30-May-2001 imp

Use PATH_MAX instead of MAXPATHLEN.
Also use sizeof(path) in preference to PATH_MAX.


# 75577 17-Apr-2001 kris

-Wnon-const-format sweep: make format strings const char *'s, add
__printflike()/__printf0like() to function prototypes, as appropriate.

Reviewed by: bde, -audit


# 57454 24-Feb-2000 markm

Use libcrypto inst=ead if libdes.


# 51434 19-Sep-1999 markm

Fix for new Kerberos4.


# 50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48560 04-Jul-1999 bde

Improved error handling in rev.1.18: don't ignore failure of execve().

Fixed some style bugs in rev.1.18.


# 46057 25-Apr-1999 dt

Quick fix to allow transfer files >2GB.


# 40101 09-Oct-1998 markm

Add JKH's auth.conf-file parser to turn Kerberos on/off in userland.


# 38018 02-Aug-1998 bde

Fixed printf format errors (time_t is not necessarily long).


# 36149 18-May-1998 charnier

Correct use of .Nm. Add rcsid.


# 34898 26-Mar-1998 markm

KTH announced a weakness in their implementation of KerberosIV.
FreeBSD was not vulnerable, but their fix had some useful features.
Incorporate the best of those - rcp(1) no longer needs to be SUID
to root.


# 31633 08-Dec-1997 wosch

Add -P option to cp(1) for local to local copying.
Pointed out by: bde


# 31615 07-Dec-1997 wosch

Use `cp -R' instead `cp -r' for local to local coping
(e.g.: rcp -r /tmp/1 /tmp/2). See the cp(1) manpage for more details.


# 29914 28-Sep-1997 markm

Change to use the new KTH Kerberos.
Also make -Wall a bit quieter.


# 26466 06-Jun-1997 charnier

Correct usage string. Man page don't reflect reality for now.


# 25612 09-May-1997 joerg

Ensure string termination after strncpy().

PR: 2997
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


# 24348 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 20420 14-Dec-1996 steve

-Wall cleaning.


# 18409 20-Sep-1996 nate

ts_sec -> tv_sec
ts_nsec -> tv_nsec


# 14024 11-Feb-1996 markm

#include <kerberosIV/des.h> -> #include <des.h>


# 13978 08-Feb-1996 pst

Close bin/937 - handle negative timestamps


# 10663 10-Sep-1995 markm

Updating /usr/include/kerberosIV/des.h so eBones will build breaks
rcp and rlogin.
(patch supplied)

Submitted by: John Capo <jc@irbs.com>


# 8855 30-May-1995 rgrimes

Remove trailing whitespace.

Reviewed by: phk


# 7165 19-Mar-1995 joerg

You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory.

I (Joerg) finished most of Philippe's cleanup. /bin/sh will still
need *allot* of work, however.

Submitted by: charnier@lirmm.fr (Philippe Charnier)


# 3044 24-Sep-1994 dg

Added $Id$


# 1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.


# 1556 26-May-1994 rgrimes

BSD 4.4 Lite bin Sources