2
0
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:
John Johansen
2008-04-18 21:04:54 +00:00
parent 6e87b3f004
commit 8d715ce9d6

View File

@@ -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