2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 18:17:09 +00:00

Merge parser: set progname explicitly for tst_regex

Otherwise tst_regex would log as being from parser_common.c instead of
being from the actual source of parser_regex.c

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1707
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
John Johansen 2025-06-05 23:14:48 +00:00
commit f9c20e4786

View File

@ -1449,6 +1449,9 @@ int main(void)
int rc = 0;
int retval;
// Default is parser_common.c, but it should be this source file instead
progname = __FILE__;
retval = test_filter_slashes();
if (retval != 0)
rc = retval;