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

Dots in file names of configuration files

Details

    Description

      I initially asked about this on the mariadb-discuss list:

      https://lists.launchpad.net/maria-discuss/msg01912.html

      I've also submitted this as bug 74551 to Oracle:

      http://bugs.mysql.com/bug.php?id=74551

      If an includedir directive like the following is added to /etc/my.cnf:

      !includedir /home/mysql/conf

      MySQL should load any configuration variables from files in that directory if the file name ends with '.cnf' according to the documentation:

      http://dev.mysql.com/doc/refman/5.6/en/option-files.html

      The problem I ran into is that MySQL appears to do the comparison based on the first dot character ('.') that appears in the filename. If I have a file with a full path like this:

      /home/mysql/conf/mysql5.6.cnf

      MySQL appears to think that the extension of the file is '.6.cnf', rather than '.cnf', so it won't load configuration variables from it.

      How to repeat:
      Add an includedir directive to my.cnf.

      In the directory named in the includedir directive, add a file with a name that adds in .cnf, but also has at least one additional dot character ('.') in the name.

      Suggested fix:
      Perform the comparison by seeing that the file name ends with '.cnf', rather than comparing against the string that appears after the first dot character ('.').

      Attachments

        Activity

          GeoffMontee Geoff Montee (Inactive) created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Labels upstream
          elenst Elena Stepanova made changes -
          nirbhay_c Nirbhay Choubey (Inactive) made changes -
          Assignee Nirbhay Choubey [ nirbhay_c ]
          nirbhay_c Nirbhay Choubey (Inactive) added a comment - http://lists.askmonty.org/pipermail/commits/2014-October/006853.html
          nirbhay_c Nirbhay Choubey (Inactive) made changes -
          Fix Version/s 10.1.2 [ 15801 ]
          nirbhay_c Nirbhay Choubey (Inactive) made changes -
          Assignee Nirbhay Choubey [ nirbhay_c ] Sergei Golubchik [ serg ]
          Status Open [ 1 ] In Review [ 10002 ]
          serg Sergei Golubchik made changes -
          Assignee Sergei Golubchik [ serg ] Nirbhay Choubey [ nirbhay_c ]
          Status In Review [ 10002 ] Stalled [ 10000 ]
          nirbhay_c Nirbhay Choubey (Inactive) added a comment - https://github.com/MariaDB/server/commit/3c2c03624803abd20e5e4e589fa6b14bd92c29f5
          nirbhay_c Nirbhay Choubey (Inactive) made changes -
          Fix Version/s 10.0.15 [ 17300 ]
          Fix Version/s 5.5.41 [ 17600 ]
          Resolution Fixed [ 1 ]
          Status Stalled [ 10000 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 56314 ] MariaDB v3 [ 61696 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 61696 ] MariaDB v4 [ 148347 ]

          People

            nirbhay_c Nirbhay Choubey (Inactive)
            GeoffMontee Geoff Montee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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