9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.64k stars 326 forks source link

tail: fix reading from terminal on OpenBSD. #658

Open falsifian opened 5 months ago

falsifian commented 5 months ago

isseekable function taken from 9front commit 1c835e37 by ftrvxmtrx.

Fixes #499. I tested tail +1c on OpenBSD and DragonFlyBSD and in both cases the bug was present and this commit fixes it. I have not tried it on Linux.

I haven't tested much other than tail +1c or tried to really understand the source of the problem with the previous seekable test.