copy: add one more assertions about copy_flags
Follow-up for 01428141ba.
This commit is contained in:
@@ -1133,8 +1133,11 @@ static int fd_copy_tree_generic(
|
||||
copy_progress_path_t progress_path,
|
||||
copy_progress_bytes_t progress_bytes,
|
||||
void *userdata) {
|
||||
|
||||
int r;
|
||||
|
||||
assert(!FLAGS_SET(copy_flags, COPY_LOCK_BSD));
|
||||
|
||||
if (S_ISDIR(st->st_mode))
|
||||
return fd_copy_directory(df, from, st, dt, to, original_device, depth_left-1, override_uid,
|
||||
override_gid, copy_flags, denylist, hardlink_context, display_path,
|
||||
|
||||
Reference in New Issue
Block a user