FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
15.79k stars 477 forks source link

cmd/age: also fallback to stdin and stdout, if /dev/tty exists, but cannot be opened #414

Closed brandsimon closed 2 years ago

brandsimon commented 2 years ago

As mention here [0], I had a problem when /dev/tty exists, but age failed to open it. Now age falls back to /dev/tty, which is the same behavior as if /dev/tty does not exist. If there are additional changes needed, I am happy to implement them.

PS: Thank you very much for this great tool!

[0] https://github.com/FiloSottile/age/issues/279#issuecomment-1115499664

FiloSottile commented 2 years ago

Thank you!