mirror of
https://github.com/kopia/kopia.git
synced 2026-05-14 09:47:35 -04:00
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.