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

Details

Provenance
markjAuthored on Jul 5 2025, 2:54 PM
Reviewer
bapt
Differential Revision
D51159: nuageinit: Add wrappers for chmod and chown
Parents
rG476d2d8f290f: amd64 pmap: do not panic on inability to insert ptp into trie
Branches
Unknown
Tags
Unknown