Skip to content

Commit

Permalink
avoid deplicated osfs options
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed May 20, 2024
1 parent 59e915c commit 08d04bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/servant.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (s *Servant) shareDir(newChan ssh.NewChannel) {
s.Logger.Error("remote directory does not exist", "path", meta.Path, "err", err)
}

bfs := osfs.New(meta.Path)
bfs := osfs.New(meta.Path, osfs.WithBoundOS())
bfsPlusChange := osfsx.New(bfs)

handler := nfshelper.NewNullAuthHandler(bfsPlusChange)
Expand Down

0 comments on commit 08d04bc

Please sign in to comment.