New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[webOS] Fix timezone reading #23847
[webOS] Fix timezone reading #23847
Conversation
a367e00
to
cdfaa1e
Compare
It seems |
Information for webOS 4.1.0 (MStar M3 SoC, using the YouTube jail as an example):
It seems that
These are the relevant lines in
These files are the same outside of the jail. It looks like |
cdfaa1e
to
6ae3c84
Compare
Thank you for checking this on different webOS versions. As you suggested I have changed to reading the symlink path from |
6ae3c84
to
c8e413a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
On webOS /etc/localtime is a symlink to /var/luna/preferences/localtime which in turn is another symlink to the real timezone file. In this case the timezone file must be resolved twice which realpath does
c8e413a
to
6e4793f
Compare
I've made some formatting changes to meet the current code style. The diffs are available in the following links: For more information please see our current code style guidelines. |
Description
Timezone was not set correctly on startup on webOS. Some refactoring is done first to avoid duplicating code. The diff is a bit large because
clang format
required fixing up the header inclusion order and variable spacingMotivation and context
The webOS jailer only mounts
/etc/localtime
which is a symlink to/var/luna/preferences/localtime
./var/luna/preferences/localtime
however is another symlink to the actual zone info.How has this been tested?
webOS22/7
What is the effect on users?
Fixes timezone initialization
Screenshots (if appropriate):
Types of change
Checklist: