Windows - customFlags
should use filepath.Clean()
instead of path.Clean()
#22367
Labels
customFlags
should use filepath.Clean()
instead of path.Clean()
#22367
go-ethereum/cmd/utils/customflags.go
is handling OS paths and therefore it should usefilepath.Clean()
(works for windows path separator) instead ofpath.Clean()
(nix path separator)go-ethereum/cmd/utils/customflags.go
Line 199 in fdb7424
path.Clean()
https://github.com/golang/go/blob/master/src/path/path.go#L51-L62
filepath.Clean()
https://github.com/golang/go/blob/master/src/path/filepath/path.go#L66-L79
Expected behaviour
should cleanup for OS path separator
Actual behaviour
path.Clean()
assumes the path separator is/
while it might be\\
The text was updated successfully, but these errors were encountered: