Skip to content

Commit e211396

Browse files
committed
bug: client is nil
1 parent 5c4385a commit e211396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sftpfs/sftp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (s Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error
102102
return nil, err
103103
}
104104
err = sshfsFile.Chmod(perm)
105-
return &File{fd: sshfsFile}, err
105+
return &File{fd: sshfsFile, client: s.client}, err
106106
}
107107

108108
func (s Fs) Remove(name string) error {

0 commit comments

Comments
 (0)