mirror of
https://github.com/kopia/kopia.git
synced 2026-10-23 06:38:42 -04:00
Fix error clobbering in kopia cli runner
Error variable was being shared between c.Output and ioutil.ReadAll. The two could race to set err, and if Output() finishes first with an error, ReadAll could overwrite it with nil. Fix is to delegate an independent error for the pipe read, and fail the test if it is non-nil.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f