diff options
Diffstat (limited to 'src/msec/plugins/msec.py')
-rwxr-xr-x | src/msec/plugins/msec.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msec/plugins/msec.py b/src/msec/plugins/msec.py index 16deef2..554574c 100755 --- a/src/msec/plugins/msec.py +++ b/src/msec/plugins/msec.py @@ -17,7 +17,7 @@ import config import gettext # localization try: - gettext.install('msec', unicode=1) + gettext.install('msec', str=1) except IOError: _ = str @@ -434,12 +434,12 @@ class msec: liloconf = self.configfiles.get_config_file(LILOCONF) liloconf.exists() and (liloconf.replace_line_matching('^password=', 'password="' + value + '"', 0, 1) or \ liloconf.insert_after('^boot=', 'password="' + value + '"')) and \ - Perms.chmod(liloconf.path, 0600) + Perms.chmod(liloconf.path, 0o600) # TODO encrypt password in grub menulst = self.configfiles.get_config_file(MENULST) menulst.exists() and (menulst.replace_line_matching('^password\s', 'password "' + value + '"') or \ menulst.insert_at(0, 'password "' + value + '"')) and \ - Perms.chmod(menulst.path, 0600) + Perms.chmod(menulst.path, 0o600) # TODO add yaboot support def nopassword_loader(self): |