1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-24 08:44:52 +00:00
restic/internal/restic
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
..
testdata forget: Display reasons why snapshots are kept 2018-08-20 21:47:51 +02:00
backend.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
backend_find.go stat: Improve error message for bad snapshot ID (fixes #1933) 2018-08-08 16:49:36 -06:00
backend_find_test.go backend: Rework List() 2018-01-21 18:35:37 +01:00
blob.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
blob_set.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
blob_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
buffer.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
cache.go Automatically exclude current restic cache 2017-09-24 21:54:53 +02:00
config.go Disable polynomial check for chunker for tests 2018-03-11 20:59:40 +01:00
config_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
doc.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
duration.go Add custom Duration type 2018-05-13 12:48:42 +02:00
duration_test.go Add custom Duration type 2018-05-13 12:48:42 +02:00
file.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
file_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
find.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
find_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
hardlinks_index.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
hardlinks_index_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
id.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
id_int_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
id_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
ids.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
ids_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
idset.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
idset_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
lock.go lock: Ignore invalid lock file 2018-03-05 20:19:57 +01:00
lock_test.go Fix calls to repo/backend.List() everywhere 2018-01-21 21:15:09 +01:00
lock_unix.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
lock_windows.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node.go restore: suppress lchown errors when not running as root 2018-09-09 15:39:10 +02:00
node_darwin.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node_freebsd.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node_linux.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node_netbsd.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
node_openbsd.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node_solaris.go Add support for illumos/Solaris 2018-03-04 20:11:29 +00:00
node_test.go Merge pull request #1772 from ifedorenko/restore-verify 2018-06-23 14:50:29 +02:00
node_unix.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node_unix_test.go Fix test 2018-07-14 11:51:34 +02:00
node_windows.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node_xattr.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
progress.go Control progress rate with RESTIC_PROGRESS_FPS env 2017-10-26 14:46:56 +08:00
progress_unix.go Add support for illumos/Solaris 2018-03-04 20:11:29 +00:00
progress_unix_with_siginfo.go Handle SIGINFO on all supported platforms 2017-09-02 22:06:31 +03:00
rand_reader.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
readerat.go Reworked Backend.Load API to retry errors during ongoing download 2018-02-16 21:12:14 -05:00
repository.go check: Allow filling the cache during check 2018-04-01 13:59:27 +02:00
rewind_reader.go Use int64 for the length in the RewindReader 2018-03-04 10:40:42 +01:00
rewind_reader_test.go Use int64 for the length in the RewindReader 2018-03-04 10:40:42 +01:00
snapshot.go snapshot: Do not modify slice of paths 2018-04-22 11:37:05 +02:00
snapshot_find.go backup: Clean target paths before finding parent 2018-04-30 22:03:11 +02:00
snapshot_policy.go forget: Display reasons why snapshots are kept 2018-08-20 21:47:51 +02:00
snapshot_policy_test.go forget: Display reasons why snapshots are kept 2018-08-20 21:47:51 +02:00
snapshot_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
tag_list.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
testing.go Reduce data for TestCreateSnapshot 2018-03-11 21:42:39 +01:00
testing_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
tree.go tree: Add convenience functions 2018-04-22 11:37:05 +02:00
tree_test.go replace ad-hoc context.TODO() with gopts.ctx, so that cancellation 2017-12-03 07:22:14 -05:00