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

(cherry picked from commit a03d150a3d44c49344ebd0862defd1a5ad1f524e)

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
rG350784b01cb5: pw: Add a missing chown() when creating dirs in mkdir_home_parents()
Branches
Unknown
Tags
Unknown