mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-04-21 12:31:43 +00:00
check metadata on chown/chmod errors when cloning
This commit is contained in:
@@ -82,7 +82,7 @@ namespace fs
|
||||
if(errno != EEXIST)
|
||||
return -1;
|
||||
|
||||
rv = fs::chmod(topath,st.st_mode);
|
||||
rv = fs::chmod_check_on_error(topath,st.st_mode);
|
||||
if(rv == -1)
|
||||
return -1;
|
||||
}
|
||||
@@ -96,7 +96,7 @@ namespace fs
|
||||
if((rv == -1) && !ignorable_error(errno))
|
||||
return -1;
|
||||
|
||||
rv = fs::chown(topath,st);
|
||||
rv = fs::lchown_check_on_error(topath,st);
|
||||
if(rv == -1)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user