OpenBSD CVS

CVS log for src/bin/rcp/Attic/rcp.c


[BACK] Up to [local] / src / bin / rcp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.56, Wed Mar 19 14:44:17 2014 UTC (10 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.55: +1 -1 lines
FILE REMOVED

Thulsa Doom says "Infidel Defilers. They shall all drown in lakes of blood."

Revision 1.55 / (download) - annotate - [select for diffs], Sun Mar 16 05:30:13 2014 UTC (10 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

cope with the renaming of default _PATH_RSH
ok tedu

Revision 1.54 / (download) - annotate - [select for diffs], Wed Nov 20 20:53:55 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

unsigned casts for ctype macros where neccessary
ok guenther millert markus

Revision 1.53 / (download) - annotate - [select for diffs], Tue Nov 12 04:36:02 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

add a variety of missing prototypes

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jun 17 04:48:42 2013 UTC (10 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.51: +33 -19 lines
Diff to previous 1.51 (colored)

Handle time_t values as long long's when formatting them and when
parsing them from remote servers.
Improve error checking in parsing of 'T' lines.

ok dtucker@ deraadt@

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jun 1 20:59:25 2013 UTC (11 years ago) by dtucker
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is.  Patch
from Nathan Osman via bz#2085.  ok deraadt.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 4 02:24:46 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.49: +1 -2 lines
Diff to previous 1.49 (colored)

remove some unnecessary sys/param.h inclusions

Revision 1.49 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:22 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.48: +1 -15 lines
Diff to previous 1.48 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.48 / (download) - annotate - [select for diffs], Sun Mar 1 13:47:02 2009 UTC (15 years, 3 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

fix double space in synopsis and usage.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jan 1 09:10:25 2008 UTC (16 years, 5 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.46: +5 -5 lines
Diff to previous 1.46 (colored)

If rcp -p encounters a pre-epoch timestamp, use the epoch which is
as close as we can get given that it's used unsigned.  Matches
recent change to scp.c, prompted by djm@

Revision 1.46 / (download) - annotate - [select for diffs], Tue Mar 20 18:50:11 2007 UTC (17 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.45: +5 -11 lines
Diff to previous 1.45 (colored)

sync usage(); from Igor Sobrado
i also ripped some kerberos ifdefs out of usage(), which is ok biorn

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 17 12:44:16 2006 UTC (18 years ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

fix leak

Revision 1.44 / (download) - annotate - [select for diffs], Thu Mar 23 02:48:57 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored)

give correct err string; adobriyan@gmail.com

Revision 1.43 / (download) - annotate - [select for diffs], Sun Mar 12 01:51:15 2006 UTC (18 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.42: +47 -30 lines
Diff to previous 1.42 (colored)

fix double shell expansion issue found in scp in rcp too; ok deraadt

Revision 1.42 / (download) - annotate - [select for diffs], Sat Nov 12 18:34:25 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.41: +29 -31 lines
Diff to previous 1.41 (colored)

move to asprintf; ok dhill cloder
also fix a close(random data) which changed a saved errno, ok cloder

Revision 1.41 / (download) - annotate - [select for diffs], Thu Mar 31 18:39:21 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.40: +9 -6 lines
Diff to previous 1.40 (colored)

copy argv[] element instead of smashing the one that ps will see; ok otto

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jul 8 12:53:42 2004 UTC (19 years, 11 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.39: +8 -4 lines
Diff to previous 1.39 (colored)

Prevent rcp from skipping the file following a double-error.  Matches scp.c
rev 1.116, prompted by & ok markus@

Revision 1.39 / (download) - annotate - [select for diffs], Thu Apr 1 12:19:57 2004 UTC (20 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.38: +8 -2 lines
Diff to previous 1.38 (colored)

limit trust between local and remote rcp/scp process,
noticed by lcamtuf; ok deraadt@, djm@

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jul 29 00:24:16 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored)

spacing

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 28 06:05:35 2003 UTC (20 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

rcsid should say openbsd

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 18 00:44:50 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

unsigned uid; andrushock@korovino.net

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 2 23:32:09 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.34: +2 -6 lines
Diff to previous 1.34 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Apr 13 18:04:41 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

0 vs NULL; andrushock@korovino.net

Revision 1.33 / (download) - annotate - [select for diffs], Sat Mar 8 17:18:25 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored)

duplicate include; andrushock@pisem.net

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 10 10:29:35 2003 UTC (21 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Don't ftruncate after write error, creating sparse files of incorrect length
mindrot bug #403, reported by rusr@cup.hp.com; ok markus@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 4 04:26:40 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.30: +10 -23 lines
Diff to previous 1.30 (colored)

ansi

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 9 05:30:08 2002 UTC (22 years ago) by todd
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

some knf.

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 9 18:44:46 2002 UTC (22 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.28: +7 -3 lines
Diff to previous 1.28 (colored)

Remove setuid bit; non-root uses will have rsh(1) invoked on their behalf.
This does mean that we cannot set IPTOS_THROUGHPUT.  If this is a problem
we may be able to add an option to rsh(1).

Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:35 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.27: +1 -29 lines
Diff to previous 1.27 (colored)

We live in an ANSI C world.  Remove lots of gratuitous #ifdef __STDC__ cruft.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:19 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)

Revision 1.26 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:07 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.25: +11 -11 lines
Diff to previous 1.25 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Nov 21 15:35:28 2001 UTC (22 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

2GB fix (int->off_t) similar to scp; daniel@lucq.org

Revision 1.24 / (download) - annotate - [select for diffs], Mon Oct 1 08:06:28 2001 UTC (22 years, 8 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.23: +6 -1 lines
Diff to previous 1.23 (colored)

skip filenames containing \n; report jdamery@chiark.greenend.org.uk
and matthew@debian.org

Revision 1.23 / (download) - annotate - [select for diffs], Thu Sep 6 13:29:08 2001 UTC (22 years, 9 months ago) by mpech
Branch: MAIN
Changes since 1.22: +7 -5 lines
Diff to previous 1.22 (colored)

o) __progname aria;

millert@ ok.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jun 13 09:03:18 2001 UTC (23 years ago) by markus
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

exit(errs) -> exit(errs!=0); sync with scp.c, ok deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jun 13 08:52:42 2001 UTC (23 years ago) by markus
Branch: MAIN
Changes since 1.20: +15 -9 lines
Diff to previous 1.20 (colored)

va_start/end for every call to vfprintf and friends, from scp.c

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 11 18:43:40 2001 UTC (23 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.19: +3 -4 lines
Diff to previous 1.19 (colored)

use strlcpy instead of strncpy+a[len-1]='\0'

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 6 16:46:59 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.18: +5 -1 lines
Diff to previous 1.18 (colored)

remove trailing / from source paths; fixes pr#1756

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 8 05:15:29 1997 UTC (26 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

use cp -R for local copies

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 5 00:09:36 1997 UTC (26 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +19 -13 lines
Diff to previous 1.16 (colored)

avoid having pw_ information active when calling rcmd(); tacha@tera.fukui-med.ac.jp

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 12 04:43:18 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.15: +5 -3 lines
Diff to previous 1.15 (colored)

-Wall

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 1 18:30:22 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +9 -9 lines
Diff to previous 1.14 (colored)

i am bored enough to fix terminal space/tab uglies

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 25 18:58:41 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored)

#if __STDC__ --> #ifdef __STDC__

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jul 23 19:19:33 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

tabify

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 29 11:10:28 1997 UTC (26 years, 11 months ago) by provos
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

new location of des.h

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 6 11:02:21 1997 UTC (27 years ago) by deraadt
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

fix

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 26 01:19:49 1997 UTC (27 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

unterminated buffer; charnier@xp11.frmug.org

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 15 23:40:25 1997 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 22 02:57:51 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 14 12:18:13 1996 UTC (27 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.6: +9 -5 lines
Diff to previous 1.6 (colored)

-Wall'ing.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 2 12:41:04 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

zap getopt() case of -?, come on, it is the default!

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 2 12:17:04 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +8 -9 lines
Diff to previous 1.4 (colored)

more robust deliting, and handle negative timestamps; from freebsd

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 2 00:35:17 1996 UTC (28 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

timespec members are now named tv_{,u}sec again

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 27 02:16:47 1995 UTC (28 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.2: +4 -0 lines
Diff to previous 1.2 (colored)

Only warn about non-kerberos protocol if kerberos has been configured with
a local realm (/etc/kerberosIV/krb.conf is set up).

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 16 22:20:17 1995 UTC (28 years, 6 months ago) by tholo
Branch: MAIN
Changes since 1.1: +0 -24 lines
Diff to previous 1.1 (colored)

Make it possible to build without SKEY support
Add support for building with kerberosIV

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:37:19 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:37:19 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.