HomeFreeBSD

nuageinit: Add wrappers for chmod and chown

Description

nuageinit: Add wrappers for chmod and chown

In the wrappers, check for errors and abort if one is raised. At some
point it may be useful to have a mechanism to ignore errors, but I'm not
sure yet how that should look.

For chmod, let the mode be specified as an octal number, otherwise it's
hard to understand what's happening. Note that this must be specified
as a string, otherwise tonumber() will raise an error.

Reviewed by: bapt
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D51159

(cherry picked from commit 667ef8875bad115d334a85c1023db0cf4d8379ba)

Details

Provenance
markjAuthored on Jul 5 2025, 2:54 PM
Reviewer
bapt
Differential Revision
D51159: nuageinit: Add wrappers for chmod and chown
Parents
rG12718429e89f: rc_subr_test: Bump some sleep timeouts
Branches
Unknown
Tags
Unknown