Skip to content

Commit

Permalink
copy: do not ignore chattr_flags and friends passed to copy_file_atom…
Browse files Browse the repository at this point in the history
…ic_full()

Fixes a bug introduced by 427d9c3.
  • Loading branch information
yuwata committed Feb 8, 2024
1 parent 8334b1c commit 738ad08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/copy.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static inline int copy_file_atomic_at(int dir_fdf, const char *from, int dir_fdt
return copy_file_atomic_at_full(dir_fdf, from, dir_fdt, to, mode, 0, 0, copy_flags, NULL, NULL);
}
static inline int copy_file_atomic_full(const char *from, const char *to, mode_t mode, unsigned chattr_flags, unsigned chattr_mask, CopyFlags copy_flags, copy_progress_bytes_t progress, void *userdata) {
return copy_file_atomic_at_full(AT_FDCWD, from, AT_FDCWD, to, mode, 0, 0, copy_flags, NULL, NULL);
return copy_file_atomic_at_full(AT_FDCWD, from, AT_FDCWD, to, mode, chattr_flags, chattr_mask, copy_flags, progress, userdata);
}
static inline int copy_file_atomic(const char *from, const char *to, mode_t mode, CopyFlags copy_flags) {
return copy_file_atomic_full(from, to, mode, 0, 0, copy_flags, NULL, NULL);
Expand Down

0 comments on commit 738ad08

Please sign in to comment.