diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-05-15 14:15:40 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-05-15 14:15:40 +0000 |
commit | 6ce1ef5198d9b7bf38b651e98f42114f8ef5f369 (patch) | |
tree | bdedef9f0b09fd611032d7b4dc0def3010308846 | |
parent | 4e332db0e8eb34dc9ffa4ebeee0e7bd5747e9831 (diff) | |
download | drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar.gz drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar.bz2 drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar.xz drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.zip |
Properly detecting dansguardian control level (#50700).
-rwxr-xr-x | bin/drakguard | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/drakguard b/bin/drakguard index 4dff7aa..2d02d37 100755 --- a/bin/drakguard +++ b/bin/drakguard @@ -245,7 +245,8 @@ sub quit_gui { sub load() { my $guardian = read_dansguardian(); - $level = { reverse %dansguardian_levels }->{$guardian->{naughtynesslimit}}; + my $levelname = { %dansguardian_levels }->{$guardian->{naughtynesslimit}}; + $level = { reverse %dansguardian_levels }->{$levelname} if $levelname; $level ||= { reverse %dansguardian_levels }->{High}; $enable = services::starts_on_boot('dansguardian'); |