Skip to content

mitogen: Fix sudo password authentication with translated prompts#1516

Merged
moreati merged 2 commits into
mitogen-hq:masterfrom
moreati:issue1514-nbsp
May 22, 2026
Merged

mitogen: Fix sudo password authentication with translated prompts#1516
moreati merged 2 commits into
mitogen-hq:masterfrom
moreati:issue1514-nbsp

Conversation

@moreati
Copy link
Copy Markdown
Member

@moreati moreati commented May 19, 2026

Translated prompts may contain whitespace, which was being ignored because mitogen.sudo.PASSWORD_PROMPT_RE is now parsed as VERBOSE. In turn this wasn't caught because there was no test coverage. Some versions of sudo-ws have shipped with translations that use NBSP in the password prompt instead SPACE, at some positions, e.g. fr_FR on Debian 9.

fixes #1514

moreati added 2 commits May 18, 2026 13:21
Translated prompts may contain whitespace, which was being ignored because
mitogen.sudo.PASSWORD_PROMPT_RE is now parsed as VERBOSE. In turn this wasn't
caught because there was no test coverage.
Some versions of sudo-ws have shipped with translations that use NBSP in the
password prompt instead SPACE, at some positions, e.g. fr_FR on Debian 9.
@moreati moreati changed the title mitogen: Handle NO-BREAK SPACE seen in some sudo password prompts mitogen: Fix sudo password authentication with translated prompts May 22, 2026
@moreati moreati marked this pull request as ready for review May 22, 2026 11:37
@moreati moreati merged commit b40425f into mitogen-hq:master May 22, 2026
43 of 48 checks passed
@moreati moreati deleted the issue1514-nbsp branch May 22, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interactive sudo authentication failure with RHEL8, French localization

1 participant