mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
parser: remove unneeded e_buffer_overflow
As noted by Seth Arnold, e_buffer_overflow is no longer set in convert_aaregex_to_pcre(), so remove it and the sole check for it. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
enum error_type {
|
||||
e_no_error,
|
||||
e_parse_error,
|
||||
e_buffer_overflow
|
||||
};
|
||||
|
||||
/* Filters out multiple slashes (except if the first two are slashes,
|
||||
@@ -377,11 +376,6 @@ static pattern_t convert_aaregex_to_pcre(const char *aare, int anchor,
|
||||
}
|
||||
/* check error again, as above STORE may have set it */
|
||||
if (error != e_no_error) {
|
||||
if (error == e_buffer_overflow) {
|
||||
PERROR(_("%s: Internal buffer overflow detected, %d characters exceeded\n"),
|
||||
progname, PATH_MAX);
|
||||
}
|
||||
|
||||
PERROR(_("%s: Unable to parse input line '%s'\n"),
|
||||
progname, aare);
|
||||
|
||||
|
Reference in New Issue
Block a user