Blame SOURCES/mariadb-covscan.patch

584bfd
Error: SHELLCHECK_WARNING:
584bfd
/usr/bin/mysql_install_db:431:10: warning: Remove backticks to avoid executing output. [SC2092]
584bfd
#  429|     if test ! -d "$dir"
584bfd
#  430|     then
584bfd
#  431|->     if ! `mkdir -p "$dir"`
584bfd
#  432|       then
584bfd
#  433|         echo "Fatal error Can't create database directory '$dir'"
584bfd
--- mariadb-10.3.10/scripts/mysql_install_db.sh	2018-10-02 11:45:42.000000000 +0200
584bfd
+++ mariadb-10.3.10/scripts/mysql_install_db.sh_patched	2018-11-14 10:06:54.868469138 +0100
584bfd
@@ -428,7 +428,7 @@ for dir in "$ldata" "$ldata/mysql"
584bfd
 do
584bfd
   if test ! -d "$dir"
584bfd
   then
584bfd
-    if ! `mkdir -p "$dir"`
584bfd
+    if ! mkdir -p "$dir"
584bfd
     then
584bfd
       echo "Fatal error Can't create database directory '$dir'"
584bfd
       link_to_help
584bfd
584bfd
584bfd
584bfd
Error: SHELLCHECK_WARNING:
584bfd
/usr/bin/mysqld_safe:716:8: warning: Remove backticks to avoid executing output. [SC2092]
584bfd
#  714|   if [ ! -d $mysql_unix_port_dir ]
584bfd
#  715|   then
584bfd
#  716|->   if ! `mkdir -p $mysql_unix_port_dir`
584bfd
#  717|     then
584bfd
#  718|       log_error "Fatal error Can't create database directory '$mysql_unix_port'"
584bfd
--- mariadb-10.3.10/scripts/mysqld_safe.sh	2018-10-02 11:45:42.000000000 +0200
584bfd
+++ mariadb-10.3.10/scripts/mysqld_safe.sh_patched	2018-11-14 10:10:45.325464636 +0100
584bfd
@@ -713,7 +713,7 @@ safe_mysql_unix_port=${mysql_unix_port:-
584bfd
 mysql_unix_port_dir=`dirname $safe_mysql_unix_port`
584bfd
 if [ ! -d $mysql_unix_port_dir ]
584bfd
 then
584bfd
-  if ! `mkdir -p $mysql_unix_port_dir`
584bfd
+  if ! mkdir -p $mysql_unix_port_dir
584bfd
   then
584bfd
     log_error "Fatal error Can't create database directory '$mysql_unix_port'"
584bfd
     exit 1