Commit Graph

22 Commits

Author SHA1 Message Date
Warner Losh
c788c9b224 Make sure we pass the length - 1 to readlink, since it adds its own
NUL at the end of the path.

Inspired by: OpenBSD's changes in this area by theo de raadt
1998-06-09 04:10:08 +00:00
Bruce Evans
42c5ca4ad6 Simplified by using new yacc rules and by not generating y.tab.h. 1998-05-04 19:25:41 +00:00
Philippe Charnier
5f03edf130 Correctly operate on hardlink when source and destination are not on the same
device.
PR: bin/3158 (part 2)
1998-04-20 06:20:24 +00:00
Philippe Charnier
52e8a120a3 Prevent rdist from dumping core: do not free() pointer before using it.
Add rcsid. Document -D flag (debug mode). Remove unused includes.
PR:bin/3158 (part 1)
1998-04-06 06:18:32 +00:00
Alexander Langer
098fd386f6 Use .Nm rdist for second .Nm occurrence in synopsis. 1998-03-01 00:18:25 +00:00
Steve Price
a58620d52c Note in manpage how extraneous output in initialization scripts
can cause rdist to fail.

PR:		bin/4954
Reviewed by:	wollman
Submitted by:	jhs
1997-11-16 13:26:03 +00:00
Jordan K. Hubbard
39573938db Make sure lfp is non-NULL before closing it.
PR:		4652
1997-10-09 14:11:19 +00:00
John-Mark Gurney
46657c7e77 fix a few spelling changes
Submitted by: Josh Gilliam

Closes PR's: 4429, 4431-4438

PS: He has agreed to submit all contrib fixes back to the original author.
1997-08-30 12:22:49 +00:00
Philippe Charnier
321e481502 Cosmetic in usage string. 1997-08-05 06:41:26 +00:00
Peter Wemm
c115df18cd Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
Eivind Eklund
ab25b7d505 Removed potential buffer overflow. 1997-02-09 16:11:13 +00:00
Wolfram Schneider
da1ff3cb8a Sort cross references. 1997-01-15 23:25:55 +00:00
Jordan K. Hubbard
1130b656e5 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.
1997-01-14 07:20:47 +00:00
Peter Wemm
421d77f848 Don't dup the network pipe to stderr, it prevents ssh from asking for a
password.

Obtained from: ssh FAQ, Thomas.Koenig@ciw.uni-karlsruhe.de
1996-12-10 23:41:27 +00:00
Bruce Evans
0c8ea4d48c Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications.  Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.
1996-09-24 08:08:11 +00:00
Paul Traina
172e05288c Close bin/2747: rdist accesses free()d memory 1996-09-11 01:39:55 +00:00
Peter Wemm
c6105ccefd Make the dependencies work a little better.. 1996-08-30 03:04:49 +00:00
Peter Wemm
fb9e3ade6c Remove the need for rdist(1) to run setuid, thus completely closing any
possibility of a security hole.  It now does what rdist-6 does, and calls
/usr/bin/rsh if not running as root.  There are NO protocol changes, this
is 100% compatable with the old rdist, except that it does not need setuid
root privs.

However, there are some minor differences to the base rdist-6 code in that
if it is being run by root, it will call rcmd(3) directly rather than
piping everything through rsh(1).  This is a little more efficient as it
doesn't involve context switching on pipe reads/writes.

Also, the -P option was added from rdist-6.1.2, which allows an alternative
rsh program to be specified, such as ssh.  Note that it requires the fixes
to the ssh port to disable the unconditional USE_PIPES option that was
recently added.  The rcmd(3) optimisation is disabled if a non-rsh program
is speficied.
1996-08-10 07:54:17 +00:00
Nate Williams
746a432165 Changed all sprintf() calls to snprintf().
Obtained from:	Christos Zoulas <christos@deshaw.com> via NetBSD PR 2621,

[ slightly modified since we don't use libcompat anymore. ]

I'm not sure if this fixes the rdist security bug completely, but it
sure can't hurt!
1996-07-12 04:00:15 +00:00
Rodney W. Grimes
7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Garrett Wollman
94ea865c39 Use POSIX.2 regular expressions, kill libcompat. 1995-02-21 04:32:55 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00