1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00
This commit is contained in:
jgfrm 2017-02-07 16:32:09 +01:00
parent 5b2980df4e
commit ebc37708d8
4 changed files with 5 additions and 6 deletions

View file

@ -33,7 +33,7 @@ func walkDir(dir string) <-chan *dirEntry {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
return nil
}
ch <- &dirEntry{
path: name,
fi: info,

View file

@ -36,7 +36,7 @@ func (e *dirEntry) equals(other *dirEntry) bool {
fmt.Fprintf(os.Stderr, "%v: GID does not match (%v != %v)\n", e.path, stat.Gid, stat2.Gid)
return false
}
if stat.Nlink != stat2.Nlink {
fmt.Fprintf(os.Stderr, "%v: Number of links doe not match (%v != %v)\n", e.path, stat.Nlink, stat2.Nlink)
return false
@ -45,7 +45,7 @@ func (e *dirEntry) equals(other *dirEntry) bool {
return true
}
func nlink(info os.FileInfo) (uint64) {
func nlink(info os.FileInfo) uint64 {
stat, _ := info.Sys().(*syscall.Stat_t)
return stat.Nlink
}

View file

@ -26,6 +26,6 @@ func (e *dirEntry) equals(other *dirEntry) bool {
return true
}
func nlink(info os.FileInfo) (uint64) {
func nlink(info os.FileInfo) uint64 {
return 1
}
}

View file

@ -1048,4 +1048,3 @@ func TestHardLink(t *testing.T) {
testRunCheck(t, gopts)
})
}