Bugzilla – Bug 274
patch adding a %p to available variables for prompt
Last modified: 2008-01-05 19:03:55 MST
After some discussion about the confusion that can occur when nesting sudo and ssh invocations in the Debian bug report 454409, Patrick Schoenfeld offered up a patch that adds a %p to the list of variables available when defining prompts. This new variable always refers to the user for which a password is being requested. I like this patch and am accepting it for my build of 1.6.9p10 for Debian, and would like to suggest/request that you accept it upstream for some future version. Patch without the Debian-specific bits attached for your convenience... I'm building using --with-passprompt="[sudo] password for %p: ". Thanks!
Created attachment 218 [details] proposed patch adding %p to prompt variables
Merged in sudo 1.6.9p11