Chore: should not write file on file provider

This commit is contained in:
gVisor bot 2020-07-18 19:32:40 +08:00
parent b93708d929
commit 195e5be59a

View file

@ -74,9 +74,11 @@ func (f *fetcher) Initial() (interface{}, error) {
} }
} }
if f.vehicle.Type() != File {
if err := safeWrite(f.vehicle.Path(), buf); err != nil { if err := safeWrite(f.vehicle.Path(), buf); err != nil {
return nil, err return nil, err
} }
}
f.hash = md5.Sum(buf) f.hash = md5.Sum(buf)