1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 15:57:07 +00:00

This should fix #82

Sockets where just not created, but CreateNodeAt still tried
to run chmod on them.
Now, CreateNodeAt directly returns when finding a socket.
This commit is contained in:
Moritz Holtz 2015-02-02 14:50:31 +01:00
parent 1635f072ec
commit 1cf3564dc1

View file

@ -489,6 +489,7 @@ func (t Tree) CreateNodeAt(node *Node, s Server, path string) error {
} }
case "socket": case "socket":
// nothing to do, we do not restore sockets // nothing to do, we do not restore sockets
return nil
default: default:
return fmt.Errorf("filetype %q not implemented!\n", node.Type) return fmt.Errorf("filetype %q not implemented!\n", node.Type)
} }