summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdist/docmd.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Prevent rdist from dumping core: do not free() pointer before using it.charnier1998-04-061-4/+9
| | | | | Add rcsid. Document -D flag (debug mode). Remove unused includes. PR:bin/3158 (part 1)
* Make sure lfp is non-NULL before closing it.jkh1997-10-091-2/+3
| | | | PR: 4652
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Removed potential buffer overflow.eivind1997-02-091-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.
* Eliminated includes of the "temporary" backwards compatibility headerbde1996-09-241-2/+2
| | | | | | <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.
* Remove the need for rdist(1) to run setuid, thus completely closing anypeter1996-08-101-5/+60
| | | | | | | | | | | | | | | | | | 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.
* Changed all sprintf() calls to snprintf().nate1996-07-121-3/+4
| | | | | | | | | 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!
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Use POSIX.2 regular expressions, kill libcompat.wollman1995-02-211-4/+13
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+629
OpenPOWER on IntegriCloud