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

Get rid of 'printf(stderr...' in Audit Plugin.

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 10.4
    • Component/s: Plugin - Audit
    • Labels:
      None

      Description

      Currently the plugin sends messages to the server error log doing printf(stderr,...)
      But on Windows it doesn't work as the plugin gets the stderr different from the server,
      and if the server runs as a service it does not have the stderr at all.

      Replace the calls with the my_printf_error(ER_UNKNOWN_ERROR, "%s", ME_ERROR_LOG_ONLY,message); in 10.4 and with WriteFile like here https://github.com/MariaDB/server/blob/10.2/plugin/aws_key_management/aws_key_management_plugin.cc#L168 in earlier versions.

        Attachments

          Activity

            People

            • Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              holyfoot Alexey Botchkov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: