ooni-probe-cli/internal
Simone Basso e4ef279b80
fix(onboard): fail if input is /dev/null (#176)
When the input is /dev/null, every read returns EOF. In general, it
may also happen that read doesn't work as intended. So, the robust thing
to do here is to ensure that we check the return values. By doing that
we notice of io.EOF errors and we don't proceed with the onboarding.

This diff fixes the issue described by https://github.com/ooni/probe/issues/1281
however it may be that we also want (in the near or not-so-near future)
to stop onboarding if the input terminal is not a tty. This is however a
possible future evolution that should not prevent us for committing and
merging this simple fix that unblocks creating a Debian package.
2020-11-24 09:19:34 +01:00
..
bindata Release v3.0.7 (#152) 2020-09-30 10:54:58 +02:00
cli fix(onboard): fail if input is /dev/null (#176) 2020-11-24 09:19:34 +01:00
config refactor: run go fmt ./... (#169) 2020-11-13 18:42:10 +01:00
crashreport Improve the presentation of the measurement listing from the CLI 2018-09-13 14:54:56 +02:00
database refactor: now utils is an internal package (#166) 2020-11-13 17:28:02 +01:00
enginex Use more general ooni/probe-engine API (#67) 2019-10-28 14:05:05 +01:00
log/handlers refactor: now utils is an internal package (#166) 2020-11-13 17:28:02 +01:00
nettests refactor(ooni): introduce interfaces for testability 2020-11-20 12:19:51 +01:00
ooni refactor(ooni): introduce interfaces for testability 2020-11-20 12:19:51 +01:00
oonitest feat(geoip, info): write comprehensive unit tests 2020-11-20 12:19:51 +01:00
output fix(onboard): fail if input is /dev/null (#176) 2020-11-24 09:19:34 +01:00
utils refactor: run go fmt ./... (#169) 2020-11-13 18:42:10 +01:00
version chore: set version to 3.0.12-alpha (#172) 2020-11-17 18:22:46 +01:00