mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
make it so just reading an embedded hat doesn't cause the profile to be rewritten
This commit is contained in:
@@ -4507,8 +4507,9 @@ sub parse_profile_data {
|
||||
$profile_data->{$profile}{$hat}{initial_comment} = $initial_comment
|
||||
if $initial_comment;
|
||||
$initial_comment = "";
|
||||
# mark as changed so the profile will always be written out
|
||||
$changed{$profile} = 1;
|
||||
#don't mark profile as changed just because it has an embedded
|
||||
#hat.
|
||||
#$changed{$profile} = 1;
|
||||
|
||||
} elsif (/^\s*\#/) {
|
||||
# we only currently handle initial comments
|
||||
|
Reference in New Issue
Block a user