Commit Graph

18 Commits

Author SHA1 Message Date
Kevin Lo
e8f7de4bed zic(8) should exit the loop when the end of the string is reached due
to the call to error(). The problem found by doing fuzz testing.

MFC after: 3 days
2007-12-03 10:45:44 +00:00
Ruslan Ermilov
a4270a4241 Make the -m option actually work. 2004-10-19 20:30:09 +00:00
Stefan Farfeleder
5c3421939c Merge changes from the tzcode2004a import. 2004-06-20 21:41:11 +00:00
Mike Heffner
fd1bfb8056 Check whether setmode(3) fails and deallocate its return value after
calling getmode(3).

Approved by: wollman
MFC after: 1 week
2003-02-24 05:56:36 +00:00
Dima Dorfman
b7ca471a22 Back out WARNS cleanup: this is apparently vendor code, even though
most of the files aren't on the vendor branch.

Submitted by:	wollman
2001-07-18 11:27:04 +00:00
Dima Dorfman
74a5ebbd66 Constify, add some prototypes, and set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-07-15 06:20:45 +00:00
Philippe Charnier
0e94bdb19e -Wall cleaning 2000-11-28 18:18:56 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Garrett Wollman
3b1b1d2276 Fix mismerged error message.
Submitted by:	charnier
1999-02-08 16:52:42 +00:00
Garrett Wollman
15d1bc9ece I don't know how this happened since I know I compiled this on my machine.
Fix braino oflag -> uflag (or perhaps I should have gone the other way).
1999-01-21 21:09:56 +00:00
Garrett Wollman
5b7f6bf978 Merge changes from vendor branch (tzcode1999a), plus the following additional
changes:

- Finish migrating zic to its own private.h.
- Fix zic.8 so that it really is written in -mdoc.
- Add four new flags to zic (&document):
	-D	don't create directories
	-u	change ownership of newly-created files to user
	-g	change ownership of newly-created files to group
	-m	change mode of newly-created files to modespec
  These, once proven, can be used to clean up the installation.

Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode1999a.tar.gz (partially)
1999-01-21 17:46:19 +00:00
Philippe Charnier
dd63f75f44 Use err(3). Rewrote man page using mdoc format. 1997-10-29 07:27:56 +00:00
Warner Losh
6c3f552a31 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
Bruce Evans
45d1562d43 Remove old output file, if any, before creating the output file, in
case the file is a stale link.

Reviewed by:	wollman
1997-03-13 18:56:18 +00:00
Garrett Wollman
4deb5f7924 Merge from vendor branch. We are now completely up-to-date with
respect to the ADO timezone code.
1996-07-18 19:59:09 +00:00
Garrett Wollman
f8791190ac Update timezone compiler and dumper to understand the new EC rules. 1995-08-05 20:28:48 +00:00
Garrett Wollman
d787e2bcd4 FreeBSD port of timezone code. 1994-09-13 03:36:16 +00:00
Garrett Wollman
8211a3a80c The latest and greatest timezone code from Arthur David Olson, part 1.
This import comprises the `zic' and `zdump' programs.

Obtained from: Arthur David Olson, ftp://elsie.nci.nih.gov/pub/tzcode94g
1994-09-13 03:29:24 +00:00