commit | 20d152b8d86d84259f382aef3a0d10d489bf17cb | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome@forissier.org> | Wed Sep 25 20:28:33 2019 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Thu Sep 26 23:52:24 2019 +0200 |
tree | 9e9c9e37f555973a96479ae2449e868abbccb145 | |
parent | 8744ddb3b7ca38dcee01867b2201ebba3853c312 [diff] |
symbolize.py: fix exception when stdin is not a terminal Commit 6b4fc6752b3c ("symbolize.py: disable terminal local echo") uses termios functions on stdin unconditionally. Unfortunately, this will cause an exception when stdin is not a terminal, for instance: $ echo Hello | ./script/symbolize.py Traceback (most recent call last): File "./scripts/symbolize.py", line 497, in <module> main() File "./scripts/symbolize.py", line 484, in main old = termios.tcgetattr(fd) termios.error: (25, 'Inappropriate ioctl for device') Fix the issue by making sure stdin is a TTY before using the termios functions. Fixes: 6b4fc6752b3c ("symbolize.py: disable terminal local echo") Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers