Commit Graph

27 Commits

Author SHA1 Message Date
dholland 6dc3dcbc38 Use strtoll rather than strtol to read the -r argument, so it will work
for wider time_t. Also mark a timed-related y2038 lossage for whenever
someone figures out the best way to shoot timed.
2008-02-24 04:49:45 +00:00
cbiere cd788d025e * Prevent out-of-bounds read tsptype if a packet with
an unknown msg_type is received.
 * Check the received packet size.
 * Use strncpy() instead of strlcpy() so that we don't
   send gibberish from the stack.
 * No need to bind().
 * htons()/htonl() use uint16_t/uint32_t not u_short/u_long.
2007-02-04 22:21:53 +00:00
ginsbach 84b3179a34 Adapt date(1), the netsettime function, to new return value from socket(2)
when the address family is unsupported.
2006-06-14 16:35:16 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
itojun 032ed69f9a strlcpy 2003-07-12 13:23:55 +00:00
mycroft 826e316675 select() -> poll() 2002-09-21 18:15:57 +00:00
lukem cc76cf8530 fix WARNS=2 2001-11-03 13:08:16 +00:00
wiz a824cb6a27 ANSIfication and KNF fixes by Petri Koistinen in bin/13691. 2001-09-13 10:06:40 +00:00
gmcgarry bad387a59a Use socklen_t; for compilers with strict type checking. 2001-07-08 05:26:03 +00:00
kristerw c6d1478acf Fixed off-by-one error where HOSTNAME+1 characters was copied into
tsp_name that has size HOSTNAME.
1998-12-19 22:44:19 +00:00
christos 6e381b4c96 #ifdef BSD4_4 for sin_len 1998-11-04 12:50:17 +00:00
mycroft ce7d757530 Delint. 1998-07-28 03:47:14 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
mycroft f9a6471ec7 Allow a century to be specified.
Cut and paste some text from touch(1) about date parsing.
1998-01-20 21:16:38 +00:00
lukem c3c0dec69f use IP_PORTRANGE_LOW sockopt rather than home-grown code 1998-01-10 00:27:34 +00:00
cgd bad15fd37f lint 1997-11-05 21:17:14 +00:00
thorpej a71a8b8761 __RCSID()/__COPYRIGHT()/prototype police. 1997-07-20 05:17:33 +00:00
jtc 5fc5415e25 Sync with 4.4lite2 1995-09-07 06:12:53 +00:00
mycroft c7ad9c47f1 Fill in sin_len. 1995-06-03 22:24:45 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
deraadt 2e219d989f typo fix 1994-02-03 12:50:21 +00:00
deraadt df1ab8279c should bzero automatic sockaddr's before use 1993-12-05 13:26:52 +00:00
mycroft a579b792ce Add RCS identifiers. 1993-08-01 18:59:54 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00