git: 547fc67fecea - main - tzsetup: Default to UTC

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 08 Dec 2021 13:39:20 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=547fc67fecea51033a4b001d5b589f0e6cf8d820

commit 547fc67fecea51033a4b001d5b589f0e6cf8d820
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-12-08 12:51:59 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2021-12-08 13:39:00 +0000

    tzsetup: Default to UTC
    
    Restore old behavior.
    
    Fixes:  f872dde34c ("tzsetup: replace libdialog with libbsddialog")
    
    Reviewed by:    bapt
    Differential Revision:  https://reviews.freebsd.org/D33334
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 usr.sbin/tzsetup/tzsetup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index 9283cb380808..89623293e5ea 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -1028,10 +1028,9 @@ main(int argc, char **argv)
 		    "If it is set to local time,\n"
 		    "or you don't know, please choose NO here!");
 
-		conf.button.defaultno = true;
+		conf.button.defaultno = false;
 		conf.title = "Select local or UTC (Greenwich Mean Time) clock";
 		yesno = bsddialog_yesno(&conf, prompt, 7, 73);
-		conf.button.defaultno = false;
 		if (!yesno) {
 			if (reallydoit)
 				unlink(path_wall_cmos_clock);