mirror of
https://github.com/golang/go
synced 2024-11-24 14:10:03 -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