summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2021-04-10 13:02:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-04-13 09:22:48 +0200
commitf630fef413ae1a941a672e6fb1890585d8270bf1 (patch)
treedc7dcbab7b662975fe1056434545ccceb84bdfbb /common
parent38b017d9b198e8f4fd6ad40eee3181b02b1385e4 (diff)
downloadbarebox-f630fef413ae1a941a672e6fb1890585d8270bf1.tar.gz
barebox-f630fef413ae1a941a672e6fb1890585d8270bf1.tar.xz
edit: don't change terminal mode if sedit would fail to read file
Failing to read the file, e.g. because the file is actually a directory will normally result in an appropriate error message. When using vi or sedit however, we change cursor position beforehand and then directly exit, which messes up the terminal output and can even make the shell unusable (as on my Laptop's UEFI). Move the check earlier to avoid this. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.pengutronix.de/20210410110250.2104510-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions