Skip to content

Commit

Permalink
ksud: fix copy sparse file (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
5ec1cff authored and rifsxd committed Jan 24, 2025
1 parent b6d670f commit 7ac03d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/ksud_overlayfs/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ pub fn copy_sparse_file<P: AsRef<Path>, Q: AsRef<Path>>(
for segment in segments {
if let SegmentType::Data = segment.segment_type {
let start = segment.start;
let end = segment.end;
let end = segment.end + 1;

src_file.seek(SeekFrom::Start(start))?;
dst_file.seek(SeekFrom::Start(start))?;
Expand Down

0 comments on commit 7ac03d6

Please sign in to comment.