-
Notifications
You must be signed in to change notification settings - Fork 18k
path/filepath: EvalSymlinks is broken for relative paths on Windows #16793
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
Comments
Oh... I've confirmed. Thank you. |
CL https://golang.org/cl/27410 mentions this issue. |
FWIW, it doesn't exist before 1.7. |
I'd be great if this makes into 1.7.1 since it's a bug introduced on 1.7 and is preventing us from cleanly upgrading to 1.7. And we really really want to upgrade! |
/cc @ianlancetaylor @adg @broady on 1.7.1 thoughts. |
That looks very broken. How did this break? |
Because of my fault. I didn't expect this case. I'm really sorry. |
@hirochachacha, don't worry about it. We break things all the time. It happens. |
thanks. |
I'm probably OK with a fix for this going into 1.7.1 but as far as I can tell it has not been fixed on tip yet. The CL attached to this issue has not been submitted, and doesn't have any tests. |
@hirochachacha can you link to the CL that caused this? |
Oh, sorry. https://go-review.googlesource.com/#/c/20860/ is original one. (above one is test for this) |
@hirochachacha please include the fix and new tests in the same CL and have that CL reference this bug ("Fixes #16793") |
…th on Windows Current code assumes there are not ".." in the Clean(path). That's not true. Clean doesn't handle leading "..", so we need to stop normalization if we see "..". Fixes #16793 Change-Id: I0a7901bedac17f1210b134d593ebd9f5e8483775 Reviewed-on: https://go-review.googlesource.com/27410 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-on: https://go-review.googlesource.com/28641 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This seems to have been introduced with the rework on
filepath.EvalSymlinks
from this issue: #13980 on this commit: c4dda7ego version
)?go version go1.7 windows/amd64
go env
)?windows/amd64
The following code reproduces the problem:
The text was updated successfully, but these errors were encountered: