aboutsummaryrefslogtreecommitdiff
path: root/bin/rcp
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-10-191-7/+8
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=241720
* None of these programs actually use auth.conf.Dag-Erling Smørgrav2012-06-111-6/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=236892
* Remove unused header (libutil.h)Marcel Moolenaar2012-05-171-1/+0
| | | | Notes: svn path=/head/; revision=235565
* Remove duplicated header filesKevin Lo2011-06-241-1/+0
| | | | Notes: svn path=/head/; revision=223494
* Change all our own code to use st_*tim instead of st_*timespec.Ed Schouten2010-03-281-4/+4
| | | | | | | Also remove some local patches to diff(1) which are now unneeded. Notes: svn path=/head/; revision=205793
* Remove superfluous va_end which was left there in rev 1.38.Roman Divacky2008-10-281-2/+0
| | | | | | | Approved by: kib (mentor) Notes: svn path=/head/; revision=184418
* In the error handling path, don't call close(fd) if the error we'reColin Percival2007-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) Notes: svn path=/head/; revision=169848
* Fix markup.Ruslan Ermilov2007-02-271-10/+20
| | | | Notes: svn path=/head/; revision=167063
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-091-2/+2
| | | | Notes: svn path=/head/; revision=141578
* De-kerberize the manpage.Ruslan Ermilov2005-01-211-24/+3
| | | | Notes: svn path=/head/; revision=140563
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-101-0/+1
| | | | Notes: svn path=/head/; revision=139969
* Remove the clause 3, per berkeley and mail from rwatson representingWarner Losh2005-01-101-5/+1
| | | | | | | that nai was OK with all third clause removals. Notes: svn path=/head/; revision=139965
* Introduce the PRECIOUSPROG knob in bsd.prog.mk, similarRuslan Ermilov2004-11-031-1/+1
| | | | | | | | | | | to PRECIOUSLIB from bsd.lib.mk. The side effect of this is making installing the world under jail(8) possible by using another knob, NOFSCHG. Reviewed by: oliver Notes: svn path=/head/; revision=137164
* Deal with double whitespace.Ruslan Ermilov2004-07-031-4/+4
| | | | Notes: svn path=/head/; revision=131505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131484
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-063-12/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Turn malloc+snprintf into asnprintf.Mark Murray2003-10-141-14/+10
| | | | | | | Submitted by: David Hill <hill at phobia dot em ess> Notes: svn path=/head/; revision=121095
* Fix a bazillion warnings. This makes almost the whole of src/bin/*Mark Murray2003-05-031-11/+13
| | | | | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha Notes: svn path=/head/; revision=114583
* Make count a size_t as that is what is compared against and how it is used.David E. O'Brien2003-05-021-1/+2
| | | | Notes: svn path=/head/; revision=114509
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-2/+1
| | | | Notes: svn path=/head/; revision=114433
* Dekerberise. The corresponding userland stuff has been dekerberisedMark Murray2002-10-163-169/+6
| | | | | | | for ages, and no-one seems to have noticed. Viva PAM! Notes: svn path=/head/; revision=105269
* Clean up use of <stdarg.h> macros: always call va_end after va_start,Tim J. Robbins2002-10-061-2/+6
| | | | | | | | | reset with a call to va_start before each use of the va_list. Obtained from: NetBSD Notes: svn path=/head/; revision=104563
* While removing a memory leak, rev 1.32 introduced aPhilippe Charnier2002-10-061-16/+11
| | | | | | | | free-memory-and-reuse-it-after. Correct both problems and make rcp -r work again under /etc/malloc.conf -> AJ. Notes: svn path=/head/; revision=104559
* Use %jd in format string and cast argument to intmax_t instead of usingTim J. Robbins2002-10-062-4/+3
| | | | | | | | | | %qd to print struct stat.st_size. Remove WARNS=0 and WFORMAT=0 from Makefile. Tested on: alpha, sparc64, i386 Notes: svn path=/head/; revision=104549
* Mark the signo as __unused in a lazy signal handler.Juli Mallett2002-09-291-1/+1
| | | | Notes: svn path=/head/; revision=104130
* IPv6 support for rcp.Hajimu UMEMOTO2002-08-092-22/+42
| | | | | | | | | You cannot specify a raw IPv6 address for now. MFC after: 1 week Notes: svn path=/head/; revision=101591
* err() is documented as allowing NULL for the format string but GCC isn'tMatthew Dillon2002-07-101-4/+4
| | | | | | | happy about it any more so change the usage to make buildworld work again. Notes: svn path=/head/; revision=99744
* Consistently use FBSDIDDavid E. O'Brien2002-06-302-4/+4
| | | | Notes: svn path=/head/; revision=99110
* Use size_t consistently and complete some uncompleted code resulting in aJuli Mallett2002-06-202-3/+6
| | | | | | | | | | 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 Notes: svn path=/head/; revision=98468
* Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.Dag-Erling Smørgrav2002-05-082-45/+10
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96196
* Replaced exists() tests with two equivalent defined().Ruslan Ermilov2002-04-181-1/+1
| | | | | | | | LIBDIR is defined in bsd.own.mk but sys.mk no longer includes bsd.own.mk as of revision 1.60. Notes: svn path=/head/; revision=94985
* Use `The .Nm utility'Philippe Charnier2002-04-161-6/+9
| | | | Notes: svn path=/head/; revision=94869
* Correct inadvertent style botches in previous commit.Kris Kennaway2002-02-041-2/+1
| | | | Notes: svn path=/head/; revision=90167
* Lock down with WFORMAT=1 except those directories with unfixed warnings.Kris Kennaway2002-02-041-1/+3
| | | | | | | Tested on i386 and alpha. Notes: svn path=/head/; revision=90166
* o __P has been reovedWarner Losh2002-02-023-78/+33
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=90110
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-0/+1
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* style(9)David E. O'Brien2001-08-011-1/+1
| | | | Notes: svn path=/head/; revision=80818
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79526
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-1/+1
| | | | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=79452
* Fixed two bugs, first not allowing '.' as a valid login name characterJim Pirzyk2001-05-302-3/+7
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=77491
* Use PATH_MAX instead of MAXPATHLEN.Warner Losh2001-05-301-3/+4
| | | | | | | Also use sizeof(path) in preference to PATH_MAX. Notes: svn path=/head/; revision=77462
* -Wnon-const-format sweep: make format strings const char *'s, addKris Kennaway2001-04-172-2/+3
| | | | | | | | | __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit Notes: svn path=/head/; revision=75577
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.Ruslan Ermilov2001-02-131-1/+1
| | | | Notes: svn path=/head/; revision=72432
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-4/+4
| | | | Notes: svn path=/head/; revision=68935
* more removal of trailing periods from SEE ALSO.Ben Smithurst2000-11-151-1/+1
| | | | Notes: svn path=/head/; revision=68754
* Use libcrypto inst=ead if libdes.Mark Murray2000-02-242-3/+3
| | | | Notes: svn path=/head/; revision=57454
* . mdoc(7)'fyAlexey Zelkin2000-01-071-4/+9
| | | | | | | | | | | . add Xrs to hosts.equiv(5), auth.conf(5), services(5) to some pages . sort Xrs in SEE ALSO sections Patches based on PR: docs/15680 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de> Notes: svn path=/head/; revision=55562
* Fix for new Kerberos4.Mark Murray1999-09-192-3/+6
| | | | Notes: svn path=/head/; revision=51434
* $Id$ -> $FreeBSD$Peter Wemm1999-08-276-6/+6
| | | | Notes: svn path=/head/; revision=50471