diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-09-17 14:12:30 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-09-17 14:12:30 +0000 |
commit | 877b143fbc65930667585dcd29fe4801fe85be16 (patch) | |
tree | a138beb55cbadbb105b83bef1b57c4896e4a60d0 /share/libmsec.py | |
parent | d2831cd150f02fdd01cfe25e6522d669bb4b6edb (diff) | |
download | msec-877b143fbc65930667585dcd29fe4801fe85be16.tar msec-877b143fbc65930667585dcd29fe4801fe85be16.tar.gz msec-877b143fbc65930667585dcd29fe4801fe85be16.tar.bz2 msec-877b143fbc65930667585dcd29fe4801fe85be16.tar.xz msec-877b143fbc65930667585dcd29fe4801fe85be16.zip |
allow_reboot: X-\*-Core => X-:\*-Core
Diffstat (limited to 'share/libmsec.py')
-rw-r--r-- | share/libmsec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/libmsec.py b/share/libmsec.py index f0360e6..e8e77cc 100644 --- a/share/libmsec.py +++ b/share/libmsec.py @@ -364,7 +364,7 @@ def allow_reboot(arg): if val[f]: num = num + 1 val_gdmconf = gdmconf.exists() and gdmconf.get_shell_variable('SystemMenu') - oldval_kdmrc = kdmrc.exists() and kdmrc.get_shell_variable('AllowShutdown', 'X-\*-Core', '^\s*$') + oldval_kdmrc = kdmrc.exists() and kdmrc.get_shell_variable('AllowShutdown', 'X-:\*-Core', '^\s*$') if oldval_kdmrc: oldval_kdmrc = get_index(oldval_kdmrc, ALLOW_SHUTDOWN_VALUES) if arg: @@ -399,7 +399,7 @@ def allow_reboot(arg): sysctlconf.set_shell_variable('kernel.sysrq', 0) gdmconf.exists() and gdmconf.set_shell_variable('SystemMenu', 'false', '\[greeter\]', '^\s*$') - kdmrc.exists() and kdmrc.set_shell_variable('AllowShutdown', ALLOW_SHUTDOWN_VALUES[val_kdmrc], 'X-\*-Core', '^\s*$') + kdmrc.exists() and kdmrc.set_shell_variable('AllowShutdown', ALLOW_SHUTDOWN_VALUES[val_kdmrc], 'X-:\*-Core', '^\s*$') allow_reboot.arg_trans = YES_NO_TRANS |