Skip to content

Commit 6f460ad

Browse files
author
Shishir Jaiswal
committed
Merge branch 'mysql-5.5' into mysql-5.6
2 parents 3bffd42 + 32d6db3 commit 6f460ad

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/mysqld_multi.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/perl
22

3-
# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
44
#
55
# This program is free software; you can redistribute it and/or
66
# modify it under the terms of the GNU Library General Public
@@ -687,7 +687,11 @@ sub my_which
687687
my ($command) = @_;
688688
my (@paths, $path);
689689

690-
return $command if (-f $command && -x $command);
690+
# If the argument is not 'my_print_defaults' then it would be of the format
691+
# <absolute_path>/<program>
692+
return $command if ($command ne 'my_print_defaults' && -f $command &&
693+
-x $command);
694+
691695
@paths = split(':', $ENV{'PATH'});
692696
foreach $path (@paths)
693697
{

0 commit comments

Comments
 (0)