summaryrefslogtreecommitdiffstats
path: root/bin/rcp/rcp.c
Commit message (Collapse)AuthorAgeFilesLines
* In the error handling path, don't call close(fd) if the error we'recperciva2007-05-221-1/+2
| | | | | | | | 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)
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-2/+2
|
* Remove the clause 3, per berkeley and mail from rwatson representingimp2005-01-101-5/+1
| | | | that nai was OK with all third clause removals.
* Turn malloc+snprintf into asnprintf.markm2003-10-141-14/+10
| | | | Submitted by: David Hill <hill at phobia dot em ess>
* Fix a bazillion warnings. This makes almost the whole of src/bin/*markm2003-05-031-11/+13
| | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha
* Make count a size_t as that is what is compared against and how it is used.obrien2003-05-021-1/+2
|
* Quiet warnings about copyright[].obrien2003-05-011-2/+1
|
* Dekerberise. The corresponding userland stuff has been dekerberisedmarkm2002-10-161-154/+5
| | | | for ages, and no-one seems to have noticed. Viva PAM!
* Clean up use of <stdarg.h> macros: always call va_end after va_start,tjr2002-10-061-2/+6
| | | | | | reset with a call to va_start before each use of the va_list. Obtained from: NetBSD
* While removing a memory leak, rev 1.32 introduced acharnier2002-10-061-16/+11
| | | | | free-memory-and-reuse-it-after. Correct both problems and make rcp -r work again under /etc/malloc.conf -> AJ.
* Use %jd in format string and cast argument to intmax_t instead of usingtjr2002-10-061-2/+3
| | | | | | | %qd to print struct stat.st_size. Remove WARNS=0 and WFORMAT=0 from Makefile. Tested on: alpha, sparc64, i386
* IPv6 support for rcp.ume2002-08-091-20/+36
| | | | | | You cannot specify a raw IPv6 address for now. MFC after: 1 week
* err() is documented as allowing NULL for the format string but GCC isn'tdillon2002-07-101-4/+4
| | | | happy about it any more so change the usage to make buildworld work again.
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Use size_t consistently and complete some uncompleted code resulting in ajmallett2002-06-201-2/+5
| | | | | | | 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
* Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.des2002-05-081-3/+10
| | | | Sponsored by: DARPA, NAI Labs
* o __P has been reovedimp2002-02-021-56/+19
| | | | | | | | | 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.
* Fixed two bugs, first not allowing '.' as a valid login name characterpirzyk2001-05-301-2/+6
| | | | | | | | | | 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
* Use PATH_MAX instead of MAXPATHLEN.imp2001-05-301-3/+4
| | | | Also use sizeof(path) in preference to PATH_MAX.
* -Wnon-const-format sweep: make format strings const char *'s, addkris2001-04-171-1/+2
| | | | | | __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit
* Use libcrypto inst=ead if libdes.markm2000-02-241-1/+1
|
* Fix for new Kerberos4.markm1999-09-191-0/+1
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Improved error handling in rev.1.18: don't ignore failure of execve().bde1999-07-041-5/+4
| | | | Fixed some style bugs in rev.1.18.
* Quick fix to allow transfer files >2GB.dt1999-04-251-3/+3
|
* Add JKH's auth.conf-file parser to turn Kerberos on/off in userland.markm1998-10-091-1/+8
|
* Fixed printf format errors (time_t is not necessarily long).bde1998-08-021-3/+5
|
* Correct use of .Nm. Add rcsid.charnier1998-05-181-3/+5
|
* KTH announced a weakness in their implementation of KerberosIV.markm1998-03-261-11/+24
| | | | | | 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.
* Add -P option to cp(1) for local to local copying.wosch1997-12-081-2/+2
| | | | Pointed out by: bde
* Use `cp -R' instead `cp -r' for local to local copingwosch1997-12-071-2/+2
| | | | (e.g.: rcp -r /tmp/1 /tmp/2). See the cp(1) manpage for more details.
* Change to use the new KTH Kerberos.markm1997-09-281-3/+3
| | | | Also make -Wall a bit quieter.
* Correct usage string. Man page don't reflect reality for now.charnier1997-06-061-7/+8
|
* Ensure string termination after strncpy().joerg1997-05-091-2/+3
| | | | | PR: 2997 Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* -Wall cleaning.steve1996-12-141-3/+3
|
* ts_sec -> tv_secnate1996-09-201-3/+3
| | | | ts_nsec -> tv_nsec
* #include <kerberosIV/des.h> -> #include <des.h>markm1996-02-111-2/+2
|
* Close bin/937 - handle negative timestampspst1996-02-081-10/+9
|
* Updating /usr/include/kerberosIV/des.h so eBones will build breaksmarkm1995-09-101-1/+3
| | | | | | | rcp and rlogin. (patch supplied) Submitted by: John Capo <jc@irbs.com>
* Remove trailing whitespace.rgrimes1995-05-301-8/+8
| | | | Reviewed by: phk
* You will find enclosed some changes to make gcc -Wall more happy injoerg1995-03-191-5/+5
| | | | | | | | | /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)
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+924
OpenPOWER on IntegriCloud