check metadata on chown/chmod errors when cloning

This commit is contained in:
Antonio SJ Musumeci 2017-02-15 09:08:27 -05:00
parent 899670bc93
commit 492d895632
4 changed files with 125 additions and 4 deletions

View file

@ -176,11 +176,11 @@ namespace fs
if((rv == -1) && !ignorable_error(errno))
return -1;
rv = fs::fchown(fdout,stin);
rv = fs::fchown_check_on_error(fdout,stin);
if(rv == -1)
return -1;
rv = fs::fchmod(fdout,stin);
rv = fs::fchmod_check_on_error(fdout,stin);
if(rv == -1)
return -1;