HomeFreeBSD

pw: Use copy_file_range() when copying skeleton files

Description

pw: Use copy_file_range() when copying skeleton files

As a bonus, check for I/O errors and print them to standard error.

Reviewed by: bapt, emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D52588

Details

Provenance
markjAuthored on Sep 18 2025, 10:39 PM
Reviewer
bapt
Differential Revision
D52588: pw: Use copy_file_range() when copying skeleton files
Parents
rG41b2a80353e0: pw: Add a missing chown() when creating dirs in mkdir_home_parents()
Branches
Unknown
Tags
Unknown