aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-09-05 12:12:56 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-09-05 12:12:56 +0000
commitf087178f774504ec3dec6af72f228ac241e9b03f (patch)
tree22bcb20e748dd184eb3779b9e70bd0be35de7308
parent2e53cbd306b5092a2844d17f782f85b88c2c98ae (diff)
downloadmsec-f087178f774504ec3dec6af72f228ac241e9b03f.tar
msec-f087178f774504ec3dec6af72f228ac241e9b03f.tar.gz
msec-f087178f774504ec3dec6af72f228ac241e9b03f.tar.bz2
msec-f087178f774504ec3dec6af72f228ac241e9b03f.tar.xz
msec-f087178f774504ec3dec6af72f228ac241e9b03f.zip
allow_user_list: lookup ShowUsers in the X-*-Greeter section of kdmrc.
-rw-r--r--share/libmsec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/libmsec.py b/share/libmsec.py
index 8115244..bc5d39a 100644
--- a/share/libmsec.py
+++ b/share/libmsec.py
@@ -393,7 +393,7 @@ def allow_user_list(arg):
kdmrc = ConfigFile.get_config_file(KDMRC)
gdmconf = ConfigFile.get_config_file(GDMCONF)
- oldval_kdmrc = kdmrc.exists() and kdmrc.get_shell_variable('ShowUsers')
+ oldval_kdmrc = kdmrc.exists() and kdmrc.get_shell_variable('ShowUsers', 'X-\*-Greeter', '^\s*$')
oldval_gdmconf = gdmconf.exists() and gdmconf.get_shell_variable('Browser')
if arg:
@@ -416,7 +416,7 @@ def allow_user_list(arg):
if (gdmconf.exists() and oldval_gdmconf != val_gdmconf) or (kdmrc.exists() and oldval_kdmrc != val_kdmrc):
_interactive and log(_(msg))
- oldval_kdmrc != val_gdmconf and kdmrc.exists() and kdmrc.set_shell_variable('ShowUsers', val_kdmrc)
+ oldval_kdmrc != val_gdmconf and kdmrc.exists() and kdmrc.set_shell_variable('ShowUsers', val_kdmrc, 'X-\*-Greeter', '^\s*$')
oldval_gdmconf != val_gdmconf and gdmconf.exists() and gdmconf.set_shell_variable('Browser', val_gdmconf)
allow_user_list.arg_trans = YES_NO_TRANS