copy: add one more assertions about copy_flags

Follow-up for 01428141ba.
This commit is contained in:
Yu Watanabe
2023-06-23 10:07:38 +09:00
parent 19b761a097
commit dcd407b5e7
+3
View File
@@ -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,