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

Fix error handling in dirImageSource.GetBlob #412

Closed
wants to merge 1 commit into from

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Feb 6, 2018

Return the error values instead of nil.

(Also modifies the returned size to be -1 instead of 0 on the error paths, purely out of paranoia.)

@mtrmac
Copy link
Collaborator Author

mtrmac commented Feb 6, 2018

@runcom PTAL

@rhatdan
Copy link
Member

rhatdan commented Feb 6, 2018

LGTM

@TomSweeneyRedHat
Copy link
Member

LGTM assuming happy tests.

Return the error values instead of nil.

(Also modifies the returned size to be -1 instead of 0 on the error paths,
purely out of paranoia.)

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@umohnani8
Copy link
Member

@mtrmac this PR can be closed as #419 incorporated these changes.

@mtrmac mtrmac closed this Feb 22, 2018
@mtrmac mtrmac deleted the dir-GetBlob branch February 22, 2018 16:07
@rhatdan
Copy link
Member

rhatdan commented Feb 22, 2018

@umohnani8 I guess we need PRS to vendor this fix into podman, buildah and skopeo?

@umohnani8
Copy link
Member

@rhatdan yup opened PRs to vendor in the changes.

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

4 participants