Bug 210197 - tzsetup fails to update /var/db/zoneinfo in certain invocations
Summary: tzsetup fails to update /var/db/zoneinfo in certain invocations
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-10 22:31 UTC by Colin Valliant
Modified: 2016-10-24 15:38 UTC (History)
3 users (show)

See Also:


Attachments
output of `dtruss -n tzsetup` for the failing case (22.91 KB, text/plain)
2016-06-10 22:37 UTC, Colin Valliant
no flags Details
output of `dtruss -n tzsetup` for `tzsetup -s America/Los_Angeles` (7.15 KB, text/plain)
2016-06-10 22:39 UTC, Colin Valliant
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Valliant 2016-06-10 22:31:15 UTC
The following happens on reliably on my 10.3-RELEASE system.

I attempted to change my time zone with `tzsetup /usr/share/zoneinfo/America/Los_Angeles` and discovered that /var/db/zoneinfo did not update.

It updates correctly when I run the similar command `tzsetup -s America/Los_Angeles`, and when I select my timezone from the menu with `tzsetup`.

Reproduction steps:

Give the system a known timezone. I'll use "America/Santiago".

# tzsetup -s America/Santiago
# cat /var/db/zoneinfo
America/Santiago
# date +%Z
CLT

Pick a new timezone, such as "America/Los_Angeles".

# tzsetup /usr/share/zoneinfo/America/Los_Angeles # press enter at both prompts

Observe that /var/db/zoneinfo was not updated.

# cat /var/db/zoneinfo
America/Santiago

Observe that the timezone did in fact change.

# date +%Z
PDT
Comment 1 Colin Valliant 2016-06-10 22:37:46 UTC
Created attachment 171281 [details]
output of `dtruss -n tzsetup` for the failing case

terminal 1: dtruss -n tzsetup
terminal 2: tzsetup /usr/share/zoneinfo/America/Los_Angeles
Comment 2 Colin Valliant 2016-06-10 22:39:11 UTC
Created attachment 171282 [details]
output of `dtruss -n tzsetup` for `tzsetup -s America/Los_Angeles`

terminal 1: dtruss -n tzsetup
terminal 2: tzsetup -s America/Los_Angeles