commit | fa8e9cc3a19c60e36945432fa8eece5a4a12c112 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Apr 12 17:26:58 2022 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Apr 13 00:28:32 2022 +0000 |
tree | a9d1a635781817a31da45c484b8b35418f726405 | |
parent | 338df53621abdcf4cd6043473170af1e5b719277 [diff] [blame] |
sbox: fix typo when comparing files A typo caused one of the two files to be compared to itself if they both had the same size. Bug: 228496289 Test: Test_filesHaveSameContents Change-Id: Ie44f32e3c9b8ef725f0d9933c7e701340036710a
diff --git a/cmd/sbox/sbox.go b/cmd/sbox/sbox.go index 03ce2d5..4f7451d 100644 --- a/cmd/sbox/sbox.go +++ b/cmd/sbox/sbox.go
@@ -750,7 +750,7 @@ return false } defer fileA.Close() - fileB, err := os.Open(a) + fileB, err := os.Open(b) if err != nil { return false }