2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-28 01:28:31 +00:00
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-01-21 18:35:37 +01:00
2018-03-03 15:49:44 +01:00
2017-07-24 17:43:32 +02:00
2017-10-02 15:06:39 +02:00
2017-07-24 17:43:32 +02:00
2018-05-13 12:48:42 +02:00
2018-05-13 12:48:42 +02:00
2017-07-24 17:43:32 +02:00
2017-07-24 17:43:32 +02:00
2017-10-02 15:06:39 +02:00
2017-07-24 17:43:32 +02:00
2017-07-24 17:43:32 +02:00
2018-03-05 20:19:57 +01:00
2018-06-16 15:55:04 +09:00
2018-07-14 11:51:34 +02:00
2018-06-16 15:55:04 +09:00
2017-10-02 15:06:39 +02:00
2018-03-11 21:42:39 +01:00
2018-04-22 11:37:05 +02:00