restic/internal
Jakob Unterwurzacher e42d2d1da8 restore: suppress lchown errors when not running as root
Like "cp -a" and "rsync -a" do, only report lchown errors if we run
as root.

Like cp from GNU coreutils does, we check Geteuid() to determine if
we are running as root
( http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/copy.c#n3012 ).

On Windows, lchown errors are always reported.

Fixes https://github.com/restic/restic/issues/1766
2018-09-09 15:39:10 +02:00
..
archiver scanner: Use context only for cancellation 2018-09-08 18:53:12 +02:00
backend clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
cache cache: Print message when new cache is created 2018-08-29 22:01:10 +02:00
checker checker: Disable size check for now 2018-07-15 21:52:38 +02:00
crypto crypto: Rework Seal/Open to use sliceForAppend 2017-11-01 10:30:40 +01:00
debug debug: Auto-shorten IDs passed as parameters 2018-01-25 20:49:26 +01:00
errors errors: Make Cause() unwrap *url.Error 2018-01-23 23:14:05 +01:00
filter filter: Allow double wildcard in ChildMatch 2018-06-09 23:18:13 +02:00
fs fs: Add helper functions ReadDir/ReadDirNames 2018-06-20 22:53:53 +02:00
fuse Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
hashing Moves files 2017-07-23 14:19:13 +02:00
index Merge pull request #1582 from restic/optimize-debug-log 2018-01-26 21:57:18 +01:00
limiter rclone: Respect bandwith limits 2018-05-22 20:48:17 +02:00
list Optimize Repository.ListPack() 2018-01-23 22:39:51 -05:00
migrations clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
mock check: Allow filling the cache during check 2018-04-01 13:59:27 +02:00
options errors: Add "Fatal" prefix for Fatalf() 2018-01-06 23:27:47 +01:00
pack backend: Improve Save() 2018-03-03 15:49:44 +01:00
repository repository: Improve buffer pooling 2018-04-22 11:37:05 +02:00
restic restore: suppress lchown errors when not running as root 2018-09-09 15:39:10 +02:00
restorer restorer: Fix traverseTree 2018-07-21 23:24:40 +02:00
selfupdate Add 'self-update' command 2018-08-12 23:34:47 +02:00
test Add test.Helper, also works with Go 1.8 2018-04-22 11:37:05 +02:00
textfile Add textfile 2018-05-01 14:38:59 +02:00
ui ui/table: Add small package for writing tables 2018-08-19 21:39:35 +02:00
walker walk: Pass parent tree ID to WalkFunc 2018-08-19 23:28:04 +02:00
worker Run goimports 2017-07-23 14:21:03 +02:00