Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 8a04142a85890993c70e73a5f91ee67b > files > 8

MySQL-4.1.11-1.6.102mdk.src.rpm

--- mysql-4.1.11/scripts/mysql_install_db.sh.cve-2006-1636	2006-02-21 11:55:11.364602850 -0700
+++ mysql-4.1.11/scripts/mysql_install_db.sh	2006-02-21 11:55:11.364602850 -0700
@@ -11,7 +11,6 @@
 windows=0
 defaults=""
 user=""
-tmp_file=/tmp/mysql_install_db.$$
 
 case "$1" in
     --no-defaults|--defaults-file=*|--defaults-extra-file=*)
@@ -232,10 +231,8 @@
     then
       echo "Fill help tables"
     fi
-    echo "use mysql;" > $tmp_file
-    cat $tmp_file $fill_help_tables | eval "$mysqld_install_cmd_line"
+    (echo "use mysql;"; cat $fill_help_tables) | eval "$mysqld_install_cmd_line"
     res=$?
-    rm $tmp_file
     if test $res != 0
     then
       echo ""