mirror of
https://github.com/golang/go
synced 2024-11-21 17:04:42 -07:00
syscall: add separator for filepath if contains "." in waspi
Fix cases like "file/."
This commit is contained in:
parent
807e01db48
commit
887a08c289
@ -409,6 +409,9 @@ func appendCleanPath(buf []byte, path string, lookupParent bool) ([]byte, bool)
|
||||
case "":
|
||||
continue
|
||||
case ".":
|
||||
if len(buf) > 0 && buf[len(buf)-1] != '/' {
|
||||
buf = append(buf, '/')
|
||||
}
|
||||
continue
|
||||
case "..":
|
||||
if !lookupParent {
|
||||
|
Loading…
Reference in New Issue
Block a user