Skip to content
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

Support chained symlinks in OpenWrt/linux #11

Open
jetibest opened this issue Aug 20, 2024 · 1 comment
Open

Support chained symlinks in OpenWrt/linux #11

jetibest opened this issue Aug 20, 2024 · 1 comment

Comments

@jetibest
Copy link

In OpenWrt I have a device where /etc/localtime is a symlink pointing to /tmp/localtime which consequently points to the right timezone.

Maybe you could put os.ReadLink into a loop (with a map memory to detect infinite loop). And/or (possibly at each step) check if the first letter of each continent/place is actually with an uppercase letter, which must be true for a timezone.

Current behavior is to simply return "tmp/localtime" which is incorrect.

@FObersteiner
Copy link
Contributor

FObersteiner commented Aug 21, 2024

filepath.EvalSymlinks seems to do the trick; see PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants