Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-9885

Client doesn't start if 'TERM' unknown

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.24, 5.5, 10.1
    • Fix Version/s: 5.5.49, 10.0.25, 10.1.14
    • Component/s: Scripts & Clients
    • Labels:
      None
    • Environment:
      MariaDB git as of f8adeccd78bff80725a95b73447e34a5f4528179, TERM=asdf

      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.

        Attachments

          Activity

            People

            • Assignee:
              serg Sergei Golubchik
              Reporter:
              davidgow David Gow
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: