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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • 10.4
    • Plugin - Audit
    • 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

            shulga Dmitry Shulga
            holyfoot Alexey Botchkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.