Page MenuHomeFreeBSD

nuageinit: Ignore non-existent groups
ClosedPublic

Authored by dtxdf on Thu, Sep 25, 12:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 11:56 AM
Unknown Object (File)
Fri, Oct 10, 11:56 AM
Unknown Object (File)
Fri, Oct 10, 11:56 AM
Unknown Object (File)
Fri, Oct 10, 5:12 AM
Unknown Object (File)
Tue, Oct 7, 4:26 PM
Unknown Object (File)
Mon, Oct 6, 2:37 AM
Unknown Object (File)
Sat, Sep 27, 9:11 PM
Unknown Object (File)
Sat, Sep 27, 9:11 PM
Subscribers

Details

Summary

In cloud-init, when a group specified in the users.{index}.groups parameter does not exist, it is ignored, but the user is created anyway. In the case of nuageinit, it exits with an exception, since pw(8) expects each group to exist.

Diff Detail

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

Event Timeline

bapt added inline comments.
libexec/nuageinit/nuage.lua
219

Just a comment here would probably help anyone reading this part of the code in a few years.

This revision is now accepted and ready to land.Thu, Sep 25, 6:46 AM

Committed and comment already added. Thanks!

This revision was automatically updated to reflect the committed changes.