kris
6c2a2fde20
The timed protocol is not implemented in a compatible way by all vendors;
...
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
2001-08-20 06:16:04 +00:00
obrien
9c97c8f02d
Perform a major cleanup of the usr.sbin Makefiles.
...
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
ru
0d5f9334cf
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 15:12:08 +00:00
kris
e231ed05e3
Patches from OpenBSD:
...
- 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
2001-05-09 08:37:18 +00:00
dd
89302146ee
mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section.
...
Reviewed by: ru
2001-04-13 19:59:47 +00:00
ru
afd506414e
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
ru
f10dc9aca1
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
asmodai
54658bf75f
Preceed/preceeding are not english words. Use precede and preceding.
...
Add $FreeBSD$.
2001-02-18 10:44:00 +00:00
ben
de830bf0bb
Check that the hostname field in received packets is NUL-terminated.
2001-01-01 18:43:21 +00:00
ben
c3d58d495a
* Fix a segfault when timed(8) receives a packet with a bad tsp_type.
...
* Check that received packets aren't too short, as this could cause other
problems.
Reviewed by: imp, markm
2000-12-28 19:50:07 +00:00
ru
4bb5f49662
Prepare for mdoc(7)NG.
2000-12-27 15:30:30 +00:00
ru
a3ee97c4c1
Eliminate groff(1) warnings.
...
Obtained from: NetBSD
2000-11-23 10:15:50 +00:00
ru
71e2293ad4
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
ru
a6f5d950d8
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
kris
3492911f01
Remove duplicated ';' statement delimiters.
...
Obtained from: BSD/OS
2000-05-19 08:26:17 +00:00
sheldonh
c7b82eb57f
Add a standard option list and make appropriate changes to the
...
body of the description.
This is based on a patch from Nick Sanders <fishy@hotbot.com>.
PR: 11978
2000-03-13 14:54:55 +00:00
shin
2ce6961c1b
Change type of vars which hold in_addr.s_addr from u_long to u_int32_t,
...
for more safety on alpha.
Approved by: jkh
2000-03-03 13:01:57 +00:00
peter
efabb9ccb1
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
nik
559bbb333e
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:12:29 +00:00
obrien
0337d32241
Remove useless `BINOWN=root' now that it is the default.
1998-09-19 22:42:14 +00:00
bde
329ef73b32
Don't assume that time_t is long. Fixed printf format errors.
1998-06-29 18:12:08 +00:00
bde
6b98b4aca2
Don't assume that time_t is long.
1998-06-29 18:09:59 +00:00
charnier
f164448775
Make all strings representing hostnames to be NUL-terminated within
...
MAXHOSTNAMELEN chars, like everywhere else in the system, so that strcpy()s
and printf()s won't fail.
1997-10-31 12:33:14 +00:00
charnier
97cd2cfa61
Back out strcpy() -> strncpy() changes. According to Bruce, they are unneeded.
...
Check the return value of gethostname() like in timed. Make enough place to
NUL-terminate the result.
1997-10-29 07:35:27 +00:00
charnier
68d30808a9
Back out strcpy() -> strncpy() changes. According to bruce, they are unneeded.
1997-10-29 07:32:30 +00:00
charnier
fb8e8d64e8
ntohl->htonl.
...
OKed by: Bruce
1997-10-27 07:41:12 +00:00
charnier
f4735827f2
Use err(3).
...
Sync man page and usage string.
Strcpy -> strncpy from OpenBSD.
-Wall cleaning.
Obtained from: OpenBSD
1997-10-22 06:20:04 +00:00
jlemon
953ff8643c
Convert nets specified with -i/-n to network byte order.
...
PR: 3906, 3801
Submitted by: Bob Willcox <bob@luke.pmr.com>, Hiroya Tsubakimoto
1997-08-21 19:53:04 +00:00
max
9efc222091
Typo: .SH --> .Sh.
...
PR: 3683
Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-05-25 19:11:26 +00:00
imp
691010efad
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-31 05:11:47 +00:00
wosch
3c5e4a3bbe
Sort cross references.
1997-01-20 00:03:00 +00:00
mpp
1e25718bf7
Fix some formatting problems. Closed PR# 2377.
...
Pointed out by: David O'Brien
1997-01-08 06:42:27 +00:00
scrappy
5624ede1e3
Fixes:
...
If timed is running when system clock is changed by date command,
improper wtmp entry is made. According to wtmp(5), two entries, one
with "|" as ut_line field and one with "{" for ut_line, should be
recorded, but, one with "|" and one with "}" are made.
Closes: PR#bin/1182
Submitted by: Masafumi NAKANE <masafumi@tky007.tth.expo96.ad.jp>
1996-10-22 05:13:42 +00:00
mpp
86b292ffbd
Correct some man page cross references and file location references.
1996-04-07 00:06:21 +00:00
rgrimes
4f960dd75f
Remove trailing whitespace.
1995-05-30 03:57:47 +00:00
dg
c643e3acd9
Fully initialize (bzero) the stack-allocated "struct sockaddr_in server"
...
structure. Random junk on the stack would cause the call to bind to fail
in some cases (since the address portion wasn't initialized).
1995-05-15 09:56:49 +00:00
bde
29fef64681
Apply an even number of ntohl's to icmp_otime. This fixes
...
`timedc clockdiff ...'.
1994-11-27 16:06:31 +00:00
wollman
d7fca5c189
Get rid of update. Make man page installation work with our scheme
...
(and rename a few in the process).
1994-08-05 16:31:05 +00:00
rgrimes
09e6808333
Why cast a constant to (unsigned long) when you can make it this by
...
appending UL.
1994-05-28 06:38:34 +00:00
rgrimes
862fdf11a2
BSD 4.4 Lite usr.sbin Sources
1994-05-26 05:23:31 +00:00