Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logcheck: fix detection of invalid * regexp in filter #315

Merged
merged 1 commit into from Mar 23, 2022

Commits on Mar 23, 2022

  1. logcheck: fix detection of invalid * regexp in filter

    Extending the user-supplied regular expression to match the entire string by
    adding ^ and $ turned invalid regular expressions like * into valid
    ones (`^*$`) and thus didn't flag them as error.
    
    It's better to compile the string exactly as supplied by the user (better error
    message, properly detects this case) and then checking later whether the entire
    string was matched.
    pohly committed Mar 23, 2022
    Copy the full SHA
    5079582 View commit details
    Browse the repository at this point in the history