Skip to content

Commit

Permalink
make path more Unix like on windows servers
Browse files Browse the repository at this point in the history
  • Loading branch information
xiegeo authored and eikenb committed Mar 2, 2017
1 parent 322a18e commit 725c6ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ func handlePacket(s *Server, p interface{}) error {
return s.sendError(p, err)
}
f = filepath.Clean(f)
f = filepath.ToSlash(f) // make path more Unix like on windows servers
return s.sendPacket(sshFxpNamePacket{
ID: p.ID,
NameAttrs: []sshFxpNameAttr{{
Expand Down

0 comments on commit 725c6ac

Please sign in to comment.