aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2021-12-08 12:51:59 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2021-12-08 13:39:00 +0000
commit547fc67fecea51033a4b001d5b589f0e6cf8d820 (patch)
treeb9276e6f31d3bbaf3296bf5e881cff394114581b
parent8d0b41b058795dcb0270ca0abcbf92289563c3ed (diff)
downloadsrc-547fc67fecea51033a4b001d5b589f0e6cf8d820.tar.gz
src-547fc67fecea51033a4b001d5b589f0e6cf8d820.zip
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
-rw-r--r--usr.sbin/tzsetup/tzsetup.c3
1 files changed, 1 insertions, 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);