fixed su prompt function reference
This commit is contained in:
parent
872448e9e8
commit
be8d797c23
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ class ConnectionInformation:
|
|||
SU_PROMPT_LOCALIZATIONS_RE = re.compile("|".join(['(\w+\'s )?' + x + ' ?: ?' for x in SU_PROMPT_LOCALIZATIONS]), flags=re.IGNORECASE)
|
||||
return bool(SU_PROMPT_LOCALIZATIONS_RE.match(data))
|
||||
|
||||
prompt = su_prompt()
|
||||
prompt = detect_su_prompt
|
||||
exe = self.become_exe or self.su_exe or 'su'
|
||||
flags = self.become_flags or self.su_flags or ''
|
||||
becomecmd = '%s %s %s -c "%s -c %s"' % (exe, flags, self.become_user, executable, success_cmd)
|
||||
|
|
Loading…
Reference in a new issue