Skip to content

fscrypt unlock </dev/null hangs indefinitely #429

@jyn514

Description

@jyn514

Steps to reproduce:

  1. Create a directory managed by fscrypt
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions