Disallow timezone specification, but still allow it to be present

if it is zero (so that we can parse old config files).
This commit is contained in:
Garrett Wollman 1994-08-08 15:09:40 +00:00
parent e80859e4d6
commit 021ce2d62e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1949

View File

@ -932,8 +932,8 @@ check_nexus(dev, num)
check_tz()
{
if (abs(zone) > 12 * 60)
yyerror("timezone is unreasonable");
if (zone != 0 || dst != 0)
yyerror("timezone specification is no longer permitted");
else
hadtz = 1;
}