summaryrefslogtreecommitdiffstats
path: root/usr.sbin/timed/timedc/cmds.c
Commit message (Collapse)AuthorAgeFilesLines
* The timed protocol is not implemented in a compatible way by all vendors;kris2001-08-201-5/+16
| | | | | | | | | | | | | | the size of the tsp_name field is OS-dependent. 4.3BSD used a 32-byte field, FreeBSD uses MAXHOSTNAMELEN and RedHat apparently uses a 64-byte field. As a result, sanity checking code added a few months ago to detect short packets will fail when interoperating with one of these other vendors. Change the short packet detection code to expect a minimum packet size corresponding to the 4.3BSD implementation, which should be a safe minimum size. Submitted by: Stephen Whiteley <stevew@best.com> (based on) PR: misc/29867
* Patches from OpenBSD:kris2001-05-091-12/+33
| | | | | | | | | | - check the msg.tsp_type value prior to using it as an index into char *tsptype[] - use strlcpy's instead of strcpy's - & handle short packets properly. Submitted by: "Andrew R. Reiter" <arr@watson.org> Obtained from: OpenBSD
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Make all strings representing hostnames to be NUL-terminated withincharnier1997-10-311-2/+2
| | | | | MAXHOSTNAMELEN chars, like everywhere else in the system, so that strcpy()s and printf()s won't fail.
* Back out strcpy() -> strncpy() changes. According to Bruce, they are unneeded.charnier1997-10-291-11/+13
| | | | | Check the return value of gethostname() like in timed. Make enough place to NUL-terminate the result.
* Use err(3).charnier1997-10-221-37/+35
| | | | | | | Sync man page and usage string. Strcpy -> strncpy from OpenBSD. -Wall cleaning. Obtained from: OpenBSD
* Why cast a constant to (unsigned long) when you can make it this byrgrimes1994-05-281-1/+1
| | | | appending UL.
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-261-0/+526
OpenPOWER on IntegriCloud