diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2024-04-30 15:40:44 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2024-04-30 15:40:44 +0000 |
commit | 99e407e597e904d4117fad5b351c31f4a0be1f87 (patch) | |
tree | 3ca9ebdc6a616b25bcd01c4f497969c6f893be17 /usr.bin/ssh/readconf.h | |
parent | 119a1b587cad9d2bcc79b221318729377423442b (diff) |
never close stdin
The sanitise_stdfd call makes sure that standard file descriptors are
open (if they were closed, they are connected with /dev/null).
Do not close stdin in any case to prevent error messages when stdin is
read multiple times and to prevent later usage of fd 0 for connections,
e.g.
echo localhost | ssh-keyscan -f - -f -
While at it, make stdin-related error messages nicer.
Authored with Max Kunzelmann <maxdev at posteo dot de>
ok djm
Diffstat (limited to 'usr.bin/ssh/readconf.h')
0 files changed, 0 insertions, 0 deletions