perkeep/cmd/camget
Brian Gitonga Marete 0c4b67d3bf cmd/camget: Support restoring symbolic links when writing to filesystem.
This patch adds support for restoring symbolic links when camget is
called with the -o option.

This fixes an issue which caused `camget -o' to write an incomplete
snapshot to the target directory when it encountered a symlink.

Note that no attempt is made to restore the symlink metadata since: a)
A symlink's permissions do not matter and are fixed to 1777 on some
systems b) Go's os.Chtimes() always acts on the symlink target c)
os.Chown() is not currently called for any file in the current code.

Tested on Linux.

Change-Id: I7099592dcd5cc513c2685671be6f6b165f8f8053
2014-03-08 05:14:59 +03:00
..
.gitignore Update from r60 to [almost] Go 1. 2012-02-18 21:53:06 -08:00
camget.go cmd/camget: Support restoring symbolic links when writing to filesystem. 2014-03-08 05:14:59 +03:00
doc.go website doc: cmds: golang style + install command 2013-03-15 23:18:09 +01:00
graph.go all: delete pkg/blobref; convert all from *blobref.BlobRef to new blob.Ref 2013-08-03 19:54:30 -07:00