2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-29 13:28:19 +00:00

Fix bug in changehat handling code where profiles read in from were set

as changed even though they may not be active profiles.
This commit is contained in:
Dominic Reynolds 2007-07-30 01:54:25 +00:00
parent 95769acf38
commit ecf9f5b5bf

View File

@ -4051,10 +4051,6 @@ sub parse_profile_data {
for my $hat (split(/\s+/, $cfg->{required_hats}{$hatglob})) {
unless ($profile_data->{$parsed_profile}{$hat}) {
$profile_data->{$parsed_profile}{$hat} = { };
# if we had to auto-instantiate a hat,
# we want to write out
# an updated version of the profile
$changed{$parsed_profile} = 1;
}
}
}