ganapathi / rpms / mariadb

Forked from rpms/mariadb 3 years ago
Clone

Blame SOURCES/mariadb-covscan.patch

665d94
Error: SHELLCHECK_WARNING:
665d94
/usr/bin/mysql_install_db:431:10: warning: Remove backticks to avoid executing output. [SC2092]
665d94
#  429|     if test ! -d "$dir"
665d94
#  430|     then
665d94
#  431|->     if ! `mkdir -p "$dir"`
665d94
#  432|       then
665d94
#  433|         echo "Fatal error Can't create database directory '$dir'"
665d94
--- mariadb-10.3.10/scripts/mysql_install_db.sh	2018-10-02 11:45:42.000000000 +0200
665d94
+++ mariadb-10.3.10/scripts/mysql_install_db.sh_patched	2018-11-14 10:06:54.868469138 +0100
665d94
@@ -428,7 +428,7 @@ for dir in "$ldata" "$ldata/mysql"
665d94
 do
665d94
   if test ! -d "$dir"
665d94
   then
665d94
-    if ! `mkdir -p "$dir"`
665d94
+    if ! mkdir -p "$dir"
665d94
     then
665d94
       echo "Fatal error Can't create database directory '$dir'"
665d94
       link_to_help
665d94