mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
check metadata on chown/chmod errors when cloning
This commit is contained in:
parent
899670bc93
commit
492d895632
4 changed files with 125 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue