Skip to content

Conversation

@AZero13
Copy link
Contributor

@AZero13 AZero13 commented Dec 17, 2025

This is because we are checking the wrong variable.

Copy link
Collaborator

@millert millert left a comment

Choose a reason for hiding this comment

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

Your fix is correct but this check will never succeed because of the

if ((flags & valid_flags) != flags)
        usage();

above it. Can you move the valid flag test to be after the MODE_EDIT checks? That way the user will get a better error message.

@AZero13
Copy link
Contributor Author

AZero13 commented Dec 17, 2025

above it. Can you move the valid flag test to be after the MODE_EDIT checks? That way the user will get a better error message.

Done

This is because we are checking the wrong variable.
@millert millert merged commit 13eb424 into sudo-project:main Dec 18, 2025
5 checks passed
@AZero13 AZero13 deleted the tags branch December 18, 2025 23:17
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.

2 participants