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)
Thu, Apr 23, 2:51 PM
Unknown Object (File)
Tue, Apr 21, 7:21 AM
Unknown Object (File)
Tue, Apr 21, 6:28 AM
Unknown Object (File)
Mon, Apr 20, 12:20 AM
Unknown Object (File)
Sun, Apr 19, 1:45 PM
Unknown Object (File)
Sun, Apr 12, 2:22 PM
Unknown Object (File)
Sat, Apr 11, 11:58 PM
Unknown Object (File)
Sat, Apr 4, 10:41 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