From c207a35f53e06d88057ed6b9ec3fc076f6ed6842 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Tue, 26 Mar 2002 04:54:29 +0000 Subject: removed yes/no declarations as they are used only from mseclib.py. Maximum password aging can be -1. --- share/libmsec.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/share/libmsec.py b/share/libmsec.py index 66ca4af..3004963 100644 --- a/share/libmsec.py +++ b/share/libmsec.py @@ -80,9 +80,6 @@ NONE=0 ALL=1 LOCAL=2 -yes=1 -no=0 - # config files => actions ConfigFile.add_config_assoc(INITTAB, '/sbin/telinit q') @@ -543,7 +540,7 @@ def enable_at_crontab(arg): cronallow.replace_line_matching('root', 'root', 1) atallow.replace_line_matching('root', 'root', 1) -maximum_regex = re.compile('^Maximum:\s*([0-9]+)', re.MULTILINE) +maximum_regex = re.compile('^Maximum:\s*([0-9]+|-1)', re.MULTILINE) inactive_regex = re.compile('^Inactive:\s*(-?[0-9]+)', re.MULTILINE) # TODO FL Sat Dec 29 20:18:20 2001 -- cgit v1.2.1