Merge pull request #10195 from henkwiedig/aix_su_promts

make su promt AIX compatible

i tested that it does not break existing on linux, I'm going to take your word on it working on AIX
pull/9427/merge
Brian Coca 10 years ago
commit 9fa221ac00

@ -53,7 +53,7 @@ SU_PROMPT_LOCALIZATIONS = [
'密碼',
]
SU_PROMPT_LOCALIZATIONS_RE = re.compile("|".join([x + ' ?: ?' for x in SU_PROMPT_LOCALIZATIONS]), flags=re.IGNORECASE)
SU_PROMPT_LOCALIZATIONS_RE = re.compile("|".join(['(\w+\'s )?' + x + ' ?: ?' for x in SU_PROMPT_LOCALIZATIONS]), flags=re.IGNORECASE)
def check_su_prompt(data):
return bool(SU_PROMPT_LOCALIZATIONS_RE.match(data))

Loading…
Cancel
Save