eworm-de / mkinitcpio-ykfde

Full disk encryption with Yubikey (Yubico key)
GNU General Public License v3.0
109 stars 26 forks source link

Updated ykfde.c to silently skip terminal updates when tcgetattr... #14

Closed Kintar closed 7 years ago

Kintar commented 7 years ago

…fails so that keys can be piped through from other commands.

We're doing automated provisioning of yubikeys, and needed to be able to pipe a current encryption key to ykfde from another command. I've updated ykfde to try to set terminal attributes and, if that fails, continue through without error. This allows the functionality we needed. Thought I'd pull request it in case you find it useful.