Bug 993

Summary: sudo -p '' fails on 1.9.8
Product: Sudo Reporter: Pierre Bourdon <delroth>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal CC: klaus
Priority: low    
Version: 1.9.8   
Hardware: PC   
OS: Linux   

Description Pierre Bourdon 2021-09-13 21:13:35 MDT
I assume something somewhere is being confused while tokenizing settings. The following simple repro works on 1.9.7p2, fails on 1.9.8.

$ sudo -p '' true
sudo: (null): option "passprompt_override" does not take a value
sudo: error initializing audit plugin sudoers_audit
Comment 1 Pierre Bourdon 2021-09-13 22:33:35 MDT
Bisected to this revision:

commit 132936f8f0a4cc6daaa74699e42bd0534eb5e031 (HEAD, refs/bisect/bad)
Author: Todd C. Miller <Todd.Miller@sudo.ws>
Date:   Mon Aug 9 15:50:25 2021 -0600

    Make it possible to call the sudoers policy check function multiple times.
    We need to reset the Defaults values to their original state.
Comment 2 Todd C. Miller 2021-09-14 08:05:00 MDT
Thanks for reporting this.  I've just committed a fix: https://www.sudo.ws/repos/sudo/rev/86e69d358916
Comment 3 Klaus Tachtler 2021-09-15 23:48:59 MDT
(In reply to Todd C. Miller from comment #2)
> Thanks for reporting this.  I've just committed a fix:
> https://www.sudo.ws/repos/sudo/rev/86e69d358916

After upgraded sudo (1.9.7.p2-1 -> 1.9.8-1) on Archlinux, following problem occurs:

[klaus@archlinux ~]$ sudo -p "Sir, Enter Your password: " pacman -Syu
sudo: (null): option "passprompt_override" does not take a value
sudo: error initializing audit plugin sudoers_audit

Thank you in advance
Klaus.
Comment 4 Klaus Tachtler 2021-09-16 01:02:54 MDT
Sorry, newer Version for sudo on Archlinux is in testing with Version 1.9.8-2 and with working sudo as expected. (With missing patch)

[klaus@archlinux sudo]$ sudo -p "Sir, Enter Your password: " pacman -Syu
Sir, Enter Your password: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
warning: sudo: local (1.9.8-2) is newer than core (1.9.8-1)
 there is nothing to do
Comment 5 Todd C. Miller 2021-09-16 13:30:22 MDT
sudo 1.9.8p1 is out now which includes the fix.