Skip to content

fix: categorize lecture as an enum#1481

Merged
squell merged 1 commit intotrifectatechfoundation:mainfrom
sudoforge:main
Mar 4, 2026
Merged

fix: categorize lecture as an enum#1481
squell merged 1 commit intotrifectatechfoundation:mainfrom
sudoforge:main

Conversation

@sudoforge
Copy link
Contributor

This change categorizes the lecture setting as an enum to avoid a validation failure in sudoers configuration containing this setting (causing visudo to yell about an invalid configuration file).

Closes: #399

@sudoforge sudoforge marked this pull request as draft February 27, 2026 17:32
@sudoforge
Copy link
Contributor Author

just firing this off real quick before i head out - will add test cases for the different enum values later today or early tomorrow.

This change categorizes the lecture setting as an enum to avoid a
validation failure in sudoers configuration containing this setting
(causing visudo to yell about an invalid configuration file).

Closes: trifectatechfoundation#399
@sudoforge sudoforge marked this pull request as ready for review March 4, 2026 22:43
@sudoforge
Copy link
Contributor Author

@squell thanks for the early approval, which reminded me about this :)

i added test cases for the different enum values (including the default), and rebased on top of the latest upstream commit.

@squell squell enabled auto-merge (rebase) March 4, 2026 22:48
Copy link
Member

@squell squell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@squell squell merged commit 4eeffa6 into trifectatechfoundation:main Mar 4, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sudoers: implement Defaults lecture

2 participants