Page MenuHomeFreeBSD

nuageinit: Add wrappers for chmod and chown
ClosedPublic

Authored by markj on Jul 4 2025, 8:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 11:21 PM
Unknown Object (File)
Fri, Oct 10, 11:21 PM
Unknown Object (File)
Fri, Oct 10, 11:21 PM
Unknown Object (File)
Fri, Oct 10, 5:03 PM
Unknown Object (File)
Sun, Oct 5, 4:47 AM
Unknown Object (File)
Tue, Sep 16, 10:50 PM
Unknown Object (File)
Mon, Sep 15, 10:01 AM
Unknown Object (File)
Sep 8 2025, 7:51 PM
Subscribers

Details

Summary

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
quite hard to understand what's happening. Note that this must be
specified as a string, otherwise tonumber() will raise an error.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable