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

Fix my_realpath to treat empty string as current directory

    XMLWordPrintable

Details

    Description

      When a plain filename is passed to error_if_data_home_dir() and the current working directory path contains symlinks, the function fails to detect that the path to be checked is in fact inside the data directory. In the typical scenario the relative path is interpreted as relative to the current working directory, and the current working directory is the data directory.

      Note: original title and description were a result of misdiagnosis. The function error_if_data_home_dir uses the path to data directory with resolved symlinks. The part that was problematic was the path to the directory in which the backup directory was to be created.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              marko Marko Mäkelä
              Andrzej Jarzabek Andrzej Jarzabek
              Sergei Golubchik Sergei Golubchik
              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.