BUGFIX: hardlink (#3277)

This commit is contained in:
Qi 2024-05-16 11:07:47 +08:00 committed by GitHub
parent 1d964011a2
commit 6c44d25dce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ func hardlink(log *logger.SugaredLoggerOnWith, dst, src string) error {
}
srcSysStat, ok := srcStat.Sys().(*syscall.Stat_t)
if ok {
if !ok {
log.Errorf("can not get inode for %q", src)
return err
}