1
0
Fork 0
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:
klauspost 2015-08-12 16:06:22 +02:00
parent 0fb1ad40f2
commit b051b0a507

View file

@ -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")
}