summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-01-10 15:55:11 +0000
committersteve <steve@FreeBSD.org>1998-01-10 15:55:11 +0000
commite8a5cb36a51baf2dfc84cd936b43b3ece46f47c5 (patch)
tree37ae110967a1a4113a88444716a1cf681fd58ed8 /usr.sbin/tzsetup
parent310652e8b0024a641a3425ebf6f87060ee99e978 (diff)
downloadFreeBSD-src-e8a5cb36a51baf2dfc84cd936b43b3ece46f47c5.zip
FreeBSD-src-e8a5cb36a51baf2dfc84cd936b43b3ece46f47c5.tar.gz
Minor brace gymnastics so that /etc/wall_cmos_clock is really
created. PR: 5473 Submitted by: MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
Diffstat (limited to 'usr.sbin/tzsetup')
-rw-r--r--usr.sbin/tzsetup/tzsetup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index d3bd449..8f3f34c 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -34,7 +34,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: tzsetup.c,v 1.8 1997/10/27 07:49:47 charnier Exp $";
+ "$Id: tzsetup.c,v 1.9 1997/11/07 00:07:27 joerg Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -655,12 +655,13 @@ main(int argc, char **argv)
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))
+ "please choose NO here!", 7, 72)) {
if (reallydoit)
system("rm -f /etc/wall_cmos_clock");
- else
+ } 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);
OpenPOWER on IntegriCloud