mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge sergbook.mysql.com:/usr/home/serg/Abk/mysql
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
This commit is contained in:
@ -75,13 +75,17 @@ if (@config_env > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
chomp($host=`hostname`);
|
chomp($host=`hostname`);
|
||||||
|
chomp($uname=`uname`);
|
||||||
$full_host_name=$host;
|
$full_host_name=$host;
|
||||||
$connect_option= ($opt_tcpip ? "--host=$host" : "");
|
$connect_option= ($opt_tcpip ? "--host=$host" : "");
|
||||||
$host =~ /^([^.-]*)/;
|
$host =~ /^([^.-]*)/;
|
||||||
$host=$1 . $opt_suffix;
|
$host=$1 . $opt_suffix;
|
||||||
$email="$opt_user\@mysql.com";
|
$email="$opt_user\@mysql.com";
|
||||||
$pwd = `pwd`; chomp($pwd);
|
chomp($pwd = `pwd`);
|
||||||
$log="$pwd/Logs/$host$opt_version_suffix.log";
|
$VER= `basename $opt_distribution`; chop $VER;
|
||||||
|
$VER=~ /mysql.*-([1-9]\.[0-9]{1,2}\.[0-9]{1,2}.*)\.tar*/; $version=$1;
|
||||||
|
($major, $minor, $release) = split(/\./,$version);
|
||||||
|
$log="$pwd/Logs/$host-$major.$minor$opt_version_suffix.log";
|
||||||
$opt_distribution =~ /(mysql[^\/]*)\.tar/;
|
$opt_distribution =~ /(mysql[^\/]*)\.tar/;
|
||||||
$ver=$1;
|
$ver=$1;
|
||||||
$gcc_version=which("gcc");
|
$gcc_version=which("gcc");
|
||||||
@ -559,9 +563,9 @@ sub abort
|
|||||||
{
|
{
|
||||||
$mail_header_file="$opt_tmp/do-command.$$";
|
$mail_header_file="$opt_tmp/do-command.$$";
|
||||||
open(TMP,">$mail_header_file");
|
open(TMP,">$mail_header_file");
|
||||||
print TMP "From: mysql\@$full_host_name\n";
|
print TMP "From: mysqldev\@$full_host_name\n";
|
||||||
print TMP "To: $email\n";
|
print TMP "To: $email\n";
|
||||||
print TMP "Subject: $ver$opt_version_suffix compilation failed\n\n";
|
print TMP "Subject: $host($uname): $ver$opt_version_suffix compilation failed\n\n";
|
||||||
close TMP;
|
close TMP;
|
||||||
system("tail -n 40 $log > $log.mail");
|
system("tail -n 40 $log > $log.mail");
|
||||||
system("cat $mail_header_file $log.mail | $sendmail -t -f $email");
|
system("cat $mail_header_file $log.mail | $sendmail -t -f $email");
|
||||||
|
7
bdb/dist/configure.in
vendored
7
bdb/dist/configure.in
vendored
@ -463,13 +463,6 @@ dnl deleted getwd().
|
|||||||
AC_REPLACE_FUNCS(getcwd getopt memcmp memcpy memmove)
|
AC_REPLACE_FUNCS(getcwd getopt memcmp memcpy memmove)
|
||||||
AC_REPLACE_FUNCS(raise snprintf strcasecmp strerror vsnprintf)
|
AC_REPLACE_FUNCS(raise snprintf strcasecmp strerror vsnprintf)
|
||||||
|
|
||||||
dnl XXX
|
|
||||||
dnl Nasty hack. AC_REPLACE_FUNCS added entries of the form xxx.o to the
|
|
||||||
dnl LIBOBJS variable. They have to be xxx.lo if we are building shared
|
|
||||||
dnl libraries. Use sed, configure already requires it.
|
|
||||||
tmp="`echo \"$LIBOBJS\" | sed \"s/\.o/${o}/g\"`"
|
|
||||||
LIBOBJS="$tmp"
|
|
||||||
|
|
||||||
dnl Check for system functions we optionally use.
|
dnl Check for system functions we optionally use.
|
||||||
AC_CHECK_FUNCS(getuid pstat_getdynamic sysconf sched_yield strtoul yield)
|
AC_CHECK_FUNCS(getuid pstat_getdynamic sysconf sched_yield strtoul yield)
|
||||||
|
|
||||||
|
@ -2414,7 +2414,7 @@ sub Print_Header {
|
|||||||
sub Print_Footer {
|
sub Print_Footer {
|
||||||
if ($MySQLaccess::CMD) { #command-line mode
|
if ($MySQLaccess::CMD) { #command-line mode
|
||||||
print "\n"
|
print "\n"
|
||||||
."BUGs can be reported by email to Yves.Carlier\@rug.ac.be\n";
|
."BUGs can be reported by email to bugs\@mysql.com\n";
|
||||||
}
|
}
|
||||||
if ($MySQLaccess::CGI) { #CGI-BIN mode
|
if ($MySQLaccess::CGI) { #CGI-BIN mode
|
||||||
if ($MySQLaccess::Param{'brief'}) {
|
if ($MySQLaccess::Param{'brief'}) {
|
||||||
@ -2422,7 +2422,7 @@ sub Print_Footer {
|
|||||||
}
|
}
|
||||||
print "<HR>\n"
|
print "<HR>\n"
|
||||||
."<ADDRESS>\n"
|
."<ADDRESS>\n"
|
||||||
."BUGs can be reported by email to <a href=mailto:Yves.Carlier\@rug.ac.be>Yves.Carlier\@rug.ac.be</a><BR>\n"
|
."BUGs can be reported by email to <a href=mailto:bugs\@mysql.com>bugs\@mysql.com</a><BR>\n"
|
||||||
# ."Don't forget to mention the version $VERSION!<BR>\n"
|
# ."Don't forget to mention the version $VERSION!<BR>\n"
|
||||||
."</ADDRESS>\n"
|
."</ADDRESS>\n"
|
||||||
."</BODY>\n"
|
."</BODY>\n"
|
||||||
|
@ -49,8 +49,9 @@ Usage: $0 db_name[./table_regex/] [new_db_name | directory]
|
|||||||
|
|
||||||
-?, --help display this helpscreen and exit
|
-?, --help display this helpscreen and exit
|
||||||
-u, --user=# user for database login if not current user
|
-u, --user=# user for database login if not current user
|
||||||
-p, --password=# password to use when connecting to server
|
-p, --password=# password to use when connecting to server (if not set
|
||||||
-h, --host=# Hostname for local server when connecting over TCP/IP
|
in my.cnf, which is recommended)
|
||||||
|
-h, --host=# Hostname for local server when connecting over TCP/IP
|
||||||
-P, --port=# port to use when connecting to local server with TCP/IP
|
-P, --port=# port to use when connecting to local server with TCP/IP
|
||||||
-S, --socket=# socket to use when connecting to local server
|
-S, --socket=# socket to use when connecting to local server
|
||||||
|
|
||||||
@ -893,7 +894,11 @@ user for database login if not current user
|
|||||||
|
|
||||||
=item -p, --password=#
|
=item -p, --password=#
|
||||||
|
|
||||||
password to use when connecting to server
|
password to use when connecting to the server. Note that you are strongly
|
||||||
|
encouraged *not* to use this option as every user would be able to see the
|
||||||
|
password in the process list. Instead use the '[mysqlhotcopy]' section in
|
||||||
|
one of the config files, normally /etc/my.cnf or your personal ~/.my.cnf.
|
||||||
|
(See the chapter 'my.cnf Option Files' in the manual)
|
||||||
|
|
||||||
=item -h, -h, --host=#
|
=item -h, -h, --host=#
|
||||||
|
|
||||||
|
@ -1267,7 +1267,9 @@ static int replace_user_table(THD *thd, TABLE *table, const LEX_USER &combo,
|
|||||||
{
|
{
|
||||||
if (combo.password.length != HASH_PASSWORD_LENGTH)
|
if (combo.password.length != HASH_PASSWORD_LENGTH)
|
||||||
{
|
{
|
||||||
my_error(ER_PASSWORD_NO_MATCH,MYF(0));
|
my_printf_error(ER_PASSWORD_NO_MATCH,
|
||||||
|
"Password hash should be a %d-digit hexadecimal number",
|
||||||
|
MYF(0),HASH_PASSWORD_LENGTH);
|
||||||
DBUG_RETURN(-1);
|
DBUG_RETURN(-1);
|
||||||
}
|
}
|
||||||
password=combo.password.str;
|
password=combo.password.str;
|
||||||
|
Reference in New Issue
Block a user