Re: [PATCH] unix: do not close stdin in grub_passwd_get

2015-11-18 Thread Vladimir 'phcoder' Serbinenko
Go ahead. Le 18 nov. 2015 7:52 PM, "Andrei Borzenkov" a écrit : > This makes it impossible to read from stdin without controlling tty: > > 10:/mnt # echo -e passwd\\npasswd | setsid ./grub-mkpasswd-pbkdf2 > Enter password: > Reenter password: ./grub-mkpasswd-pbkdf2: error: failure to read passwor

[PATCH] unix: do not close stdin in grub_passwd_get

2015-11-18 Thread Andrei Borzenkov
This makes it impossible to read from stdin without controlling tty: 10:/mnt # echo -e passwd\\npasswd | setsid ./grub-mkpasswd-pbkdf2 Enter password: Reenter password: ./grub-mkpasswd-pbkdf2: error: failure to read password. 10:/mnt --- Is there anything I missed and we *want* to close stdin