git: tzsetup(8): Sync with FreeBSD, more or less, with some modifications.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed May 20 08:52:38 PDT 2020


commit 5d0177bd59cd980bc49f115a78fbc9500c31d16c
Author: Sascha Wildner <saw at online.de>
Date:   Wed May 20 17:31:35 2020 +0200

    tzsetup(8): Sync with FreeBSD, more or less, with some modifications.
    
    New things:
    
    * When in a VM, skip the initial question about the hardware clock
      being set to UTC because it is assumed that the hardware clock in
      a VM is set to UTC.
    
    * Split out the dialog(3) code into #ifdef HAVE_DIALOG.
    
    * Some miscellaneous fixes.
    
    The dialog(3) code separation allows us to build tzsetup(8) as a
    bootstrap tool without needing libdialog and friends. Prepare the
    Makefile for this by not defining HAVE_DIALOG when bootstrapping.
    It will be used in a later commit to upgrade /etc/localtime upon
    installing new timezones.

Summary of changes:
 usr.sbin/tzsetup/Makefile  |   6 +-
 usr.sbin/tzsetup/tzsetup.8 |   2 +-
 usr.sbin/tzsetup/tzsetup.c | 243 ++++++++++++++++++++++++---------------------
 3 files changed, 135 insertions(+), 116 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5d0177bd59cd980bc49f115a78fbc9500c31d16c


-- 
DragonFly BSD source repository



More information about the Commits mailing list