mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
From: Jesse Michael <jesse@lonelyrhinoceros.com>
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user