Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sftpfs: Implement OpenFile method #158

Merged
merged 1 commit into from
Apr 10, 2020
Merged

Conversation

kklin
Copy link
Contributor

@kklin kklin commented Mar 19, 2018

Before, the OpenFile method was unimplemented, and just returned nil, nil. Because the Afero.TempFile method calls the OpenFile method, this
behavior caused a nil pointer exception when TempFile was used with
sftpfs.

This commit adds a simple implementation for sftpfs.OpenFile, fixing the
exception thrown when using it with TempFile.

Before, the OpenFile method was unimplemented, and just returned `nil,
nil`. Because the Afero.TempFile method calls the OpenFile method, this
behavior caused a nil pointer exception when TempFile was used with
sftpfs.

This commit adds a simple implementation for sftpfs.OpenFile, fixing the
exception thrown when using it with TempFile.
@CLAassistant
Copy link

CLAassistant commented Mar 19, 2018

CLA assistant check
All committers have signed the CLA.

@0xmichalis
Copy link
Collaborator

failure is from stale go1.8 build in travis, tip is passing, merging

@0xmichalis 0xmichalis merged commit ceb6a5e into spf13:master Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants