2
2
mirror of https://github.com/octoleo/restic.git synced 2025-02-08 22:58:24 +00:00
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
..
2018-06-16 15:55:04 +09:00
2017-07-23 14:19:13 +02:00
2018-05-22 20:48:17 +02:00
2018-01-23 22:39:51 -05:00
2018-03-03 15:49:44 +01:00
2018-07-21 23:24:40 +02:00
2018-08-12 23:34:47 +02:00
2018-05-01 14:38:59 +02:00
2017-07-23 14:21:03 +02:00