Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 1998 15:23:21 +0900 (JST)
From:      sanpei@yy.cs.keio.ac.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/5473: tzsetup does not create /etc/wall_cmoc_clock file.
Message-ID:  <199801100623.PAA11990@lavender.sanpei.org>
Resent-Message-ID: <199801100630.WAA25297@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5473
>Category:       bin
>Synopsis:       tzsetup does not create /etc/wall_cmoc_clock file.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan  9 22:30:00 PST 1998
>Last-Modified:
>Originator:     MIHIRA Yoshiro
>Organization:
Keio Univ.
>Release:        FreeBSD 2.2.2-RELEASE i386
>Environment:

	FreeBSD-current and FreeBSD-2.2(stable)

>Description:

	tzsetup does not create /etc/wall_cmos_clock file.
	`if else' pair is not correct between indent and C grammer
	as below.

>How-To-Repeat:

	as root, /usr/sbin/tzsetup or install system via boot.flp

>Fix:

--- tzsetup.c.orig	Sat Jan 10 14:53:08 1998
+++ tzsetup.c	Sat Jan 10 15:01:16 1998
@@ -655,12 +655,15 @@
 	init_dialog();
 	if (!dialog_yesno("Select local or UTC (Greenwich Mean Time) clock",
 			  "Is this machine's CMOS clock set to UTC?  If it is set to local time,\n"
-			  "please choose NO here!", 7, 72))
-		if (reallydoit)
+			  "please choose NO here!", 7, 72)) {
+		if (reallydoit) {
 			system("rm -f /etc/wall_cmos_clock");
-	else
-		if (reallydoit)
+		}
+	} else {
+		if (reallydoit) {
 			system("touch /etc/wall_cmos_clock");
+		}
+	}
 	dialog_clear_norefresh();
 	dialog_menu("Time Zone Selector", "Select a region", -1, -1, 
 		    NCONTINENTS, -NCONTINENTS, continents, 0, NULL, NULL);
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801100623.PAA11990>