-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
os: Rename on Plan 9 handles newname incorrectly #6401
Labels
Milestone
Comments
The handling of newname is definitely wrong. The code must check that the two paths have the same leading directory and then pass only the final element. However, the first half of the suggestion is wrong too: os.Rename is allowed to fail for different directories and on Plan 9 it should. It is a mistake to do the Copy behind the user's back. os.Rename can fail on Unix too, if the directories are on different file systems. Since Plan 9 is not a supported system, this will have to wait until Go 1.3. Labels changed: added priority-later, go1.3, 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 mischief@offblast.org:
The text was updated successfully, but these errors were encountered: