List:Commits« Previous MessageNext Message »
From:msvensson Date:November 1 2007 6:40pm
Subject:bk commit into 5.0 tree (msvensson:1.2557) BUG#30630
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-11-01 19:40:27+01:00, msvensson@stripped +1 -0
  Bug#30630 mysql-test-run all tests fail with MySQL 5.0.41 & 5.0.45 on Mac OS X Server 10.5

  mysql-test/mysql-test-run.pl@stripped, 2007-11-01 19:40:25+01:00, msvensson@stripped +10 -0
    Also check for euid == 0

diff -Nrup a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
--- a/mysql-test/mysql-test-run.pl	2007-10-23 11:52:54 +02:00
+++ b/mysql-test/mysql-test-run.pl	2007-11-01 19:40:25 +01:00
@@ -3727,6 +3727,16 @@ sub mysqld_arguments ($$$$) {
   # see BUG#28359
   mtr_add_arg($args, "%s--connect-timeout=60", $prefix);
 
+
+  # When mysqld is run by a root user(euid is 0), it will fail
+  # to start unless we specify what user to run as. If not running
+  # as root it will be ignored, see BUG#30630
+  my $euid= $>;
+  if (!$glob_win32 and $euid == 0 and
+      grep(/^--user/, @$extra_opt, @opt_extra_mysqld_opt) == 0) {
+    mtr_add_arg($args, "%s--user=root");
+  }
+
   if ( $opt_valgrind_mysqld )
   {
     mtr_add_arg($args, "%s--skip-safemalloc", $prefix);
Thread
bk commit into 5.0 tree (msvensson:1.2557) BUG#30630msvensson1 Nov