Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds better validation for commands passed in
If you use a non absolute path (or a `Cmnd_Alias` which is represented in ALL_CAPS) the sudoers validation will fail it but not tell you why. This makes it easier/quicker to spot the issue. Signed-off-by: Ben Abrams <me@benabrams.it>
- Loading branch information
1 parent
11316a6
commit 5695257
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This should be
start_with?
, notstarts_with
.