Steps to reproduce:
- Create a directory managed by fscrypt
- Run
fscrypt unlock DIR </dev/null
I expect that this exits with an error, because it's never going to get a password (ideally it would say that it's unable to read stdin). Instead, it loops forever until canceled:
Enter login passphrase for jyn: Incorrect Passphrase
Enter login passphrase for jyn: Incorrect Passphrase
Enter login passphrase for jyn: Incorrect Passphrase
Enter login passphrase for jyn: Incorrect Passphrase
...
This bit me originally because I put fscrypt unlock in /etc/ssh/sshrc, so it completely locked me out of my machine until I was able to get physical access to it.
Steps to reproduce:
fscrypt unlock DIR </dev/nullI expect that this exits with an error, because it's never going to get a password (ideally it would say that it's unable to read stdin). Instead, it loops forever until canceled:
This bit me originally because I put
fscrypt unlockin/etc/ssh/sshrc, so it completely locked me out of my machine until I was able to get physical access to it.