[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: |
|
| 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 attached patch will fallback to the non-curses path if setupterm() fails. |