[MDEV-9885] Client doesn't start if 'TERM' unknown Created: 2016-04-07  Updated: 2016-04-20  Resolved: 2016-04-20

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.0.24, 5.5, 10.1
Fix Version/s: 5.5.49, 10.0.25, 10.1.14

Type: Bug Priority: Major
Reporter: David Gow Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

MariaDB git as of f8adeccd78bff80725a95b73447e34a5f4528179, TERM=asdf


Attachments: File 0001-Stop-mysql-client-dying-if-curses-cannot-start.patch    

 Description   

The mysql client will exit if 'setupterm()' fails, e.g. if the 'TERM' environment variable is not recognized by curses.

To reproduce, use TERM=asdf mysql on a client binary built with curses support (the default).
The client will quit with:
'asdf': unknown terminal type.

The attached patch will fallback to the non-curses path if setupterm() fails.


Generated at Thu Feb 08 07:38:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.