1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

return correct type in nlink

This commit is contained in:
jgfrm 2017-02-06 20:53:04 +01:00
parent b0926e02dc
commit 685d1bb8aa

View file

@ -49,7 +49,7 @@ func (e *dirEntry) equals(other *dirEntry) bool {
func nlink(info os.FileInfo) (uint64, error) {
stat, err := restic.ToStatT(info.Sys())
if err {
return nil, ok
return 0, err
}
return stat.Nlink(info), err
}