]> Cypherpunks.ru repositories - goredo.git/blobdiff - ood.go
Raise copyright years in advance
[goredo.git] / ood.go
diff --git a/ood.go b/ood.go
index ac5730cee6dbabf91b6d0b4c1325be70504bf456..879d4140e0252783f9cc75919e7b1248e645094c 100644 (file)
--- a/ood.go
+++ b/ood.go
@@ -1,6 +1,6 @@
 /*
 goredo -- djb's redo implementation on pure Go
-Copyright (C) 2020-2023 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2020-2024 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 package main
 
 import (
+       "bytes"
        "errors"
        "fmt"
        "io"
@@ -161,7 +162,7 @@ func isOOD(tgt *Tgt, level int, seen map[string]*Tgt) (bool, error) {
                        return ood, TgtError{tgt, ErrLine(err)}
                }
 
-               if inode[:8] != ifchange.Inode()[:8] {
+               if !bytes.Equal(inode[:8], ifchange.Inode()[:8]) {
                        tracef(CDebug, "ood: %s%s -> %s: size differs", indent, tgt, ifchange.tgt)
                        ood = true
                        OODCache[ifchange.tgt.rel] = ood