From e8a5cb36a51baf2dfc84cd936b43b3ece46f47c5 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 10 Jan 1998 15:55:11 +0000 Subject: Minor brace gymnastics so that /etc/wall_cmos_clock is really created. PR: 5473 Submitted by: MIHIRA Yoshiro --- usr.sbin/tzsetup/tzsetup.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.sbin/tzsetup/tzsetup.c') 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 @@ -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); -- cgit v1.1