summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-05-15 14:15:40 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-05-15 14:15:40 +0000
commit6ce1ef5198d9b7bf38b651e98f42114f8ef5f369 (patch)
treebdedef9f0b09fd611032d7b4dc0def3010308846 /bin
parent4e332db0e8eb34dc9ffa4ebeee0e7bd5747e9831 (diff)
downloaddrakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar
drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar.gz
drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar.bz2
drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.tar.xz
drakguard-6ce1ef5198d9b7bf38b651e98f42114f8ef5f369.zip
Properly detecting dansguardian control level (#50700).
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard3
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');