-
Notifications
You must be signed in to change notification settings - Fork 18.1k
os.Chtimes follows symlinks #3951
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
Labels
Comments
afaik, on Darwin, utime(3) is emulated by utimes(2). (xnu kernel doesn't contain the utime syscall, and POSIX only defines the API, so this is OK) i think to update timestamp of symlinks, we need to use setattrlist(2), and this is what touch(1) in GNU coreutils does. can we change behavior of os.Chtimes now? or put it another way, is this issue really a bug? |
I think this is a bug but I don't think it's a very important one. At the os level we should aim for similar behaviour across systems to the extent that that is possible. Since it is apparently possible on Darwin, we should aim for it. Labels changed: added priority-someday, removed priority-triage. Status changed to Accepted. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by coolaj86:
The text was updated successfully, but these errors were encountered: