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:
parent
b0926e02dc
commit
685d1bb8aa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue