aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-07-29 07:36:14 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-07-29 07:36:14 +0000
commit92d3d111b6357c8f8e6725095e0ad505b7768706 (patch)
tree88f2e9710e71a30c4fc27f04ac07a7da9a09f7b4
parent75d250952ea1362f38e54cd4646fd0fe4d79f4ac (diff)
downloadmsec-92d3d111b6357c8f8e6725095e0ad505b7768706.tar
msec-92d3d111b6357c8f8e6725095e0ad505b7768706.tar.gz
msec-92d3d111b6357c8f8e6725095e0ad505b7768706.tar.bz2
msec-92d3d111b6357c8f8e6725095e0ad505b7768706.tar.xz
msec-92d3d111b6357c8f8e6725095e0ad505b7768706.zip
fixed typo in allow_root_login
-rw-r--r--share/libmsec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/libmsec.py b/share/libmsec.py
index b947235..f95e1c7 100644
--- a/share/libmsec.py
+++ b/share/libmsec.py
@@ -420,7 +420,7 @@ def allow_root_login(arg):
if not (_same_level and not val[s]):
securetty.replace_line_matching(s, s, 1)
else:
- if (kde.exists() and not val_kde) or (gdm.exists() and not val_gdm) or (xdm.exists() and not val_xdm) or num > 0:
+ if (kde.exists() and not val[kde]) or (gdm.exists() and not val[gdm]) or (xdm.exists() and not val[xdm]) or num > 0:
_interactive and log(_('Forbidding direct root login'))
bastillenologin = ConfigFile.get_config_file(BASTILLENOLOGIN)