Up to [local] / src / usr.bin / rsync
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_8_BASE
Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 26 22:22:14 2019 UTC (4 years, 9 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.22: +32 -20 lines
Diff to previous 1.22 (colored)
replace a mmap() with pread(). The mmap() is not needed, the file is read sequentially anyway, (hash-sized) block by block. This avoids counting potentially large files against the memory limits of the process. Problem reported by Jan Stary, thanks. ok deraadt@