fix: file not change modify time when updated rule

This commit is contained in:
gVisor bot 2022-04-28 09:07:58 +08:00
parent 88346ccdcd
commit 294a1baf8f

View file

@ -100,6 +100,7 @@ func (f *fetcher) Update() (interface{}, bool, error) {
hash := md5.Sum(buf)
if bytes.Equal(f.hash[:], hash[:]) {
f.updatedAt = &now
os.Chtimes(f.vehicle.Path(), now, now)
return nil, true, nil
}