WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Local timezone check doesn't follow symlinks #33

@drinckes

Description

@drinckes

_load_local_tzinfo() loads timezone files from /usr/share/zoneinfo/posix, and uses os.walk() to list the files.

But by default os.walk doesn't follow symlinks, so if the timezone files in /usr/share/zoneinfo/posix are symlinks to other locations (which doesn't seem terribly rare), those files won't be read in.

This can result in failing to load a timezone that matches /etc/timezone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions