mirror of
https://github.com/restic/restic.git
synced 2025-03-16 00:00:05 +01:00
Windows does not have Lchown, so ignore that error.
This commit is contained in:
parent
0fb1ad40f2
commit
b051b0a507
1 changed files with 1 additions and 1 deletions
2
node.go
2
node.go
|
@ -149,7 +149,7 @@ func (node Node) restoreMetadata(path string) error {
|
|||
var err error
|
||||
|
||||
err = os.Lchown(path, int(node.UID), int(node.GID))
|
||||
if err != nil {
|
||||
if err != nil && err != syscall.EWINDOWS {
|
||||
return errors.Annotate(err, "Lchown")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue