History log of /netbsd-current/bin/date/netdate.c
Revision Date Author Comments
# 1.30 28-Jan-2011 christos

revert the revert and fix the code properly.


# 1.29 28-Jan-2011 drochner

roll back to 20101210 -- the current version just hung if one tried
to set the date


# 1.28 11-Dec-2010 christos

branches: 1.28.2;
- check return of strtoll
- misc cleanup


# 1.27 23-Feb-2008 dholland

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.


# 1.26 04-Feb-2007 cbiere

branches: 1.26.4; 1.26.8;
* 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.


# 1.25 13-Jun-2006 ginsbach

Adapt date(1), the netsettime function, to new return value from socket(2)
when the address family is unsupported.


# 1.24 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.


# 1.23 12-Jul-2003 itojun

strlcpy


# 1.22 21-Sep-2002 mycroft

select() -> poll()


# 1.21 03-Nov-2001 lukem

fix WARNS=2


# 1.20 13-Sep-2001 wiz

ANSIfication and KNF fixes by Petri Koistinen in bin/13691.


# 1.19 07-Jul-2001 gmcgarry

Use socklen_t; for compilers with strict type checking.


# 1.18 19-Dec-1998 kristerw

Fixed off-by-one error where HOSTNAME+1 characters was copied into
tsp_name that has size HOSTNAME.


# 1.17 04-Nov-1998 christos

#ifdef BSD4_4 for sin_len


# 1.16 27-Jul-1998 mycroft

Delint.


# 1.15 06-Jul-1998 mrg

- 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


# 1.14 20-Jan-1998 mycroft

Allow a century to be specified.
Cut and paste some text from touch(1) about date parsing.


# 1.13 09-Jan-1998 lukem

use IP_PORTRANGE_LOW sockopt rather than home-grown code


# 1.12 05-Nov-1997 cgd

lint


# 1.11 19-Jul-1997 thorpej

branches: 1.11.2;
__RCSID()/__COPYRIGHT()/prototype police.


# 1.10 07-Sep-1995 jtc

Sync with 4.4lite2


# 1.9 03-Jun-1995 mycroft

Fill in sin_len.


# 1.8 21-Mar-1995 cgd

convert to new RCS id conventions.


# 1.7 22-Sep-1994 mycroft

Merge 4.4-Lite version.


# 1.6 03-Feb-1994 deraadt

typo fix


# 1.5 05-Dec-1993 deraadt

should bzero automatic sockaddr's before use


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


# 1.3 22-Mar-1993 cgd

changed "Id" to "Header" for rcsids


# 1.2 22-Mar-1993 cgd

added rcs ids to all files


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.1.1.3 07-Sep-1995 jtc

imported from 44lite2


# 1.1.1.2 21-Sep-1994 mycroft

Import original 4.4-Lite version.


# 1.1.1.1 21-Mar-1993 cgd

initial import of 386bsd-0.1 sources


# 1.11.2.2 29-Jan-1998 mellon

Back out previous changes - 1.14 simply made 1.13 not break on older systems, and we can do without 1.13 and 1.12.


# 1.11.2.1 29-Jan-1998 mellon

Pull up 1.12 (cgd), 1.13 (lukem) and 1.14 (mycroft)


# 1.26.8.1 24-Mar-2008 keiichi

sync with head.


# 1.26.4.1 22-Mar-2008 matt

sync with HEAD


# 1.28.2.1 08-Feb-2011 bouyer

Sync with HEAD