Details
-
Bug
-
Status: Closed (View Workflow)
-
Trivial
-
Resolution: Fixed
-
10.5.5
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
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Attachment | mariadb-hostname.diff [ 53648 ] |
Attachment | mariadb-hostname.diff [ 53644 ] |
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. |
Labels | portability | need_feedback portability |
Fix Version/s | 10.4 [ 22408 ] |
Remote Link | This issue links to "PR #1663 (Web Link)" [ 30106 ] |
Assignee | Anel Husakovic [ anel ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
issue.field.resolutiondate | 2020-09-10 06:49:51.0 | 2020-09-10 06:49:51.538 |
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 ] |
Fix Version/s | 10.5.7 [ 25019 ] |
Fix Version/s | 10.5.6 [ 24508 ] |
Fix Version/s | 10.4.16 [ 25020 ] |
Fix Version/s | 10.4.15 [ 24507 ] |
Labels | need_feedback portability | portability |
Workflow | MariaDB v3 [ 112961 ] | MariaDB v4 [ 158302 ] |