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)
Sun, Feb 8, 12:46 PM
Unknown Object (File)
Sun, Feb 8, 10:06 AM
Unknown Object (File)
Sat, Jan 31, 6:12 AM
Unknown Object (File)
Wed, Jan 21, 11:43 AM
Unknown Object (File)
Jan 19 2026, 11:07 PM
Unknown Object (File)
Jan 17 2026, 11:57 AM
Unknown Object (File)
Jan 17 2026, 4:18 AM
Unknown Object (File)
Jan 16 2026, 3:20 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