Page MenuHomeFreeBSD

nuageinit: Add wrappers for chmod and chown
ClosedPublic

Authored by markj on Fri, Jul 4, 8:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 11, 11:53 AM
Unknown Object (File)
Thu, Jul 10, 10:36 PM
Unknown Object (File)
Thu, Jul 10, 6:55 PM
Unknown Object (File)
Thu, Jul 10, 8:07 AM
Unknown Object (File)
Wed, Jul 9, 9:07 AM
Unknown Object (File)
Wed, Jul 9, 2:57 AM
Unknown Object (File)
Tue, Jul 8, 11:07 PM
Unknown Object (File)
Tue, Jul 8, 11:07 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