mirror of
https://github.com/golang/go
synced 2024-11-24 23:07:56 -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 "":
|
case "":
|
||||||
continue
|
continue
|
||||||
case ".":
|
case ".":
|
||||||
|
if len(buf) > 0 && buf[len(buf)-1] != '/' {
|
||||||
|
buf = append(buf, '/')
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
case "..":
|
case "..":
|
||||||
if !lookupParent {
|
if !lookupParent {
|
||||||
|
Loading…
Reference in New Issue
Block a user