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

my_realpath and MY_NOSYMLINKS on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 11.8, 12.3
    • 10.11, 11.4, 11.8, 12.3
    • None
    • None

    Description

      my_realpath() on Windows does GetFullPathName() which doesn't resolve symlinks, junctions, or mount points.

      my_open() (and other file functions) completely ignores MY_NOSYMLINKS.

      We could use GetFinalPathNameByHandle() that does resolve everything, but it needs an open file. my_open() can at least use it to compare the path of the opened file with the path if was supposed to open.

      my_realpath() can open a file, run GetFinalPathNameByHandle() and close it again. Perhaps. With a special handling for non-existent files.

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.