2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 13:58:22 +00:00
One of the uses of eval { } wasn't checking $@ for errors, so if
something bad happened, it'd be silently ignored.  This just adds in
an extra check to die if we hit a failure.
This commit is contained in:
Steve Beattie
2010-10-06 12:21:56 -07:00
parent 317197a6b5
commit 8e51a7b31e

View File

@@ -946,6 +946,8 @@ sub autodep_base($$) {
readinactiveprofiles(); # need to read the profiles to see if an
# inactive local profile is present
$profile_data = eval { get_profile($pname) };
# propagate any errors we hit inside the get_profile call
if ($@) { die $@; }
unless ($profile_data) {
$profile_data = create_new_profile($pname);