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

portability: use `uname -n` instead of `hostname`

Details

    Description

      Scripts included with mariadb use `hostname` to query the hostname, used to create logfiles, pidfiles, etc. However this command is not defined by POSIX and thus not guaranteed to work.

      Better use portable `uname -n` instead.

      See attached patch.

      Attachments

        Issue Links

          Activity

            ghen Geert Hendrickx created issue -
            ghen Geert Hendrickx made changes -
            Field Original Value New Value
            Attachment mariadb-hostname.diff [ 53648 ]
            ghen Geert Hendrickx made changes -
            Attachment mariadb-hostname.diff [ 53644 ]
            ghen Geert Hendrickx made changes -
            Description Scripts included with mariadb use `hostname` to query the hostname, used to create logfiles, pidfiles, etc. However this command is not defined by POSIX and thus not guaranteed to work.

            Better use portable `uname -n` instead.

            See attached patch. There may be more cases, these are the ones I found.
            Scripts included with mariadb use `hostname` to query the hostname, used to create logfiles, pidfiles, etc. However this command is not defined by POSIX and thus not guaranteed to work.

            Better use portable `uname -n` instead.

            See attached patch.
            serg Sergei Golubchik made changes -
            Labels portability need_feedback portability
            anel Anel Husakovic made changes -
            Fix Version/s 10.4 [ 22408 ]
            anel Anel Husakovic made changes -
            anel Anel Husakovic made changes -
            Assignee Anel Husakovic [ anel ]
            anel Anel Husakovic made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            anel Anel Husakovic made changes -
            issue.field.resolutiondate 2020-09-10 06:49:51.0 2020-09-10 06:49:51.538
            anel Anel Husakovic made changes -
            Fix Version/s 10.4.15 [ 24507 ]
            Fix Version/s 10.5.6 [ 24508 ]
            Fix Version/s 10.4 [ 22408 ]
            Resolution Fixed [ 1 ]
            Status Confirmed [ 10101 ] Closed [ 6 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.5.7 [ 25019 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.5.6 [ 24508 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.4.16 [ 25020 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.4.15 [ 24507 ]
            julien.fritsch Julien Fritsch made changes -
            Labels need_feedback portability portability
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 112961 ] MariaDB v4 [ 158302 ]

            People

              anel Anel Husakovic
              ghen Geert Hendrickx
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.