sudo: change password prompt

The current sudo password prompt is "Password: ", while distros like
e.g. Ubuntu and Arch Linux use "[sudo] password for %p: ", where "%p"
expands to the username of the user running sudo.

Adopt the prompt from other distros because it makes it less confusing
when running commands with sudo that themselves ask for a password.
This commit is contained in:
Bjørn Forsman 2014-09-04 15:34:36 +02:00
parent c8e50e28cd
commit c3436c0c4a

View file

@ -22,6 +22,10 @@ stdenv.mkDerivation rec {
"--with-sendmail=${sendmailPath}"
];
configureFlagsArray = [
"--with-passprompt=[sudo] password for %p: " # intentional trailing space
];
postConfigure =
''
cat >> pathnames.h <<'EOF'