Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 853
    • Issues 853
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2955

gtimezone: Reject weird /etc/localtime configurations

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ray Strode requested to merge fix-GTimeZone-in-toolbx into main Oct 14, 2022
  • Overview 6
  • Commits 1
  • Pipelines 3
  • Changes 1

At the moment, glib assumes that if /etc/localtime is a symlink, that it's a symlink to zoneinfo file.

Toolbx containers add an extra layer of indirection though, making it a symlink to a symlink to a zoneinfo file.

This commit deals with the problem, by performing additional checks on /etc/localtime and ignoring it if those check fail, falling back instead to reading /etc/timezone.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-GTimeZone-in-toolbx