os: Open("file/.") does not produce an error on wasip1 #69509
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
master
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
When built with GOOS=wasip1, the os package performs some path cleaning on filenames which results in a terminal "/." being removed. This causes opening a non-directory file to unexpectedly succeed.
What did you expect to see?
An error opening "file/.", because "file" is not a directory.
The text was updated successfully, but these errors were encountered: