/[base]
ViewVC logotype

Revision 365643


Jump to revision: Previous Next
Author: asomers
Date: Fri Sep 11 20:49:36 2020 UTC (3 years, 9 months ago)
Changed paths: 1
Log Message:
cp: fall back to read/write if copy_file_range fails

Even though copy_file_range has a file-system agnostic version, it still
fails on devfs (perhaps because the file descriptor is non-seekable?) In
that case, fallback to old-fashioned read/write. Fixes
"cp /dev/null /tmp/null"

PR:		249248
Reported by:	Michael Butler
Reviewed by:	mjg
MFC-With:	365549
Differential Revision:	https://reviews.freebsd.org/D26395


Changed paths

Path Details
Directoryhead/bin/cp/utils.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27