Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.128.205.101
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
lib /
v1 /
[ HOME SHELL ]
Name
Size
Permission
Action
My
[ DIR ]
drwxr-xr-x
incompatible.tests
276
B
-rw-r--r--
mtr_cases.pl
25.26
KB
-rw-r--r--
mtr_gcov.pl
2.33
KB
-rw-r--r--
mtr_gprof.pl
2.36
KB
-rw-r--r--
mtr_im.pl
18.7
KB
-rw-r--r--
mtr_io.pl
5.98
KB
-rw-r--r--
mtr_match.pl
2.49
KB
-rw-r--r--
mtr_misc.pl
6.61
KB
-rw-r--r--
mtr_process.pl
29.52
KB
-rw-r--r--
mtr_report.pl
17.52
KB
-rw-r--r--
mtr_stress.pl
6.34
KB
-rw-r--r--
mtr_timer.pl
4.51
KB
-rw-r--r--
mtr_unique.pl
4.92
KB
-rw-r--r--
mysql-test-run.pl
151.84
KB
-rwxr-xr-x
ndb_config_1_node.ini
1.21
KB
-rw-r--r--
ndb_config_2_node.ini
2.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mtr_io.pl
# -*- cperl -*- # Copyright (c) 2004, 2022, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, # as published by the Free Software Foundation. # # This program is also distributed with certain software (including # but not limited to OpenSSL) that is licensed under separate terms, # as designated in a particular file or component or in included license # documentation. The authors of MySQL hereby grant you an additional # permission to link the program and your derivative works with the # separately licensed software that they have included with MySQL. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License, version 2.0, for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # This is a library file used by the Perl version of mysql-test-run, # and is part of the translation of the Bourne shell script with the # same name. use strict; sub mtr_get_pid_from_file ($); sub mtr_get_opts_from_file ($); sub mtr_fromfile ($); sub mtr_tofile ($@); sub mtr_tonewfile($@); sub mtr_lastlinefromfile($); sub mtr_appendfile_to_file ($$); sub mtr_grab_file($); ############################################################################## # # # ############################################################################## sub mtr_get_pid_from_file ($) { my $pid_file_path= shift; my $TOTAL_ATTEMPTS= 30; my $timeout= 1; # We should read from the file until we get correct pid. As it is # stated in BUG#21884, pid file can be empty at some moment. So, we should # read it until we get valid data. for (my $cur_attempt= 1; $cur_attempt <= $TOTAL_ATTEMPTS; ++$cur_attempt) { mtr_debug("Reading pid file '$pid_file_path' " . "($cur_attempt of $TOTAL_ATTEMPTS)..."); open(FILE, '<', $pid_file_path) or mtr_error("can't open file \"$pid_file_path\": $!"); # Read pid number from file my $pid= <FILE>; chomp $pid; close FILE; return $pid if $pid=~ /^(\d+)/; mtr_debug("Pid file '$pid_file_path' does not yet contain pid number.\n" . "Sleeping $timeout second(s) more..."); sleep($timeout); } mtr_error("Pid file '$pid_file_path' is corrupted. " . "Can not retrieve PID in " . ($timeout * $TOTAL_ATTEMPTS) . " seconds."); } sub mtr_get_opts_from_file ($) { my $file= shift; open(FILE,"<",$file) or mtr_error("can't open file \"$file\": $!"); my @args; while ( <FILE> ) { chomp; # --init_connect=set @a='a\\0c' s/^\s+//; # Remove leading space s/\s+$//; # Remove ending space # This is strange, but we need to fill whitespace inside # quotes with something, to remove later. We do this to # be able to split on space. Else, we have trouble with # options like # # --someopt="--insideopt1 --insideopt2" # # But still with this, we are not 100% sure it is right, # we need a shell to do it right. # print STDERR "\n"; # print STDERR "AAA: $_\n"; s/\'([^\'\"]*)\'/unspace($1,"\x0a")/ge; s/\"([^\'\"]*)\"/unspace($1,"\x0b")/ge; s/\'([^\'\"]*)\'/unspace($1,"\x0a")/ge; s/\"([^\'\"]*)\"/unspace($1,"\x0b")/ge; # print STDERR "BBB: $_\n"; # foreach my $arg (/(--?\w.*?)(?=\s+--?\w|$)/) # FIXME ENV vars should be expanded!!!! foreach my $arg (split(/[ \t]+/)) { $arg =~ tr/\x11\x0a\x0b/ \'\"/; # Put back real chars # The outermost quotes has to go $arg =~ s/^([^\'\"]*)\'(.*)\'([^\'\"]*)$/$1$2$3/ or $arg =~ s/^([^\'\"]*)\"(.*)\"([^\'\"]*)$/$1$2$3/; $arg =~ s/\\\\/\\/g; $arg =~ s/\$\{(\w+)\}/envsubst($1)/ge; $arg =~ s/\$(\w+)/envsubst($1)/ge; # print STDERR "ARG: $arg\n"; # Do not pass empty string since my_getopt is not capable to handle it. if (length($arg)) { push(@args, $arg) } } } close FILE; return \@args; } sub envsubst { my $string= shift; if ( ! defined $ENV{$string} ) { mtr_error("opt file referense \$$string that is unknown"); } return $ENV{$string}; } sub unspace { my $string= shift; my $quote= shift; $string =~ s/[ \t]/\x11/g; return "$quote$string$quote"; } # Read a whole file, stripping leading and trailing whitespace. sub mtr_fromfile ($) { my $file= shift; open(FILE,"<",$file) or mtr_error("can't open file \"$file\": $!"); my $text= join('', <FILE>); close FILE; $text =~ s/^\s+//; # Remove starting space, incl newlines $text =~ s/\s+$//; # Remove ending space, incl newlines return $text; } sub mtr_lastlinefromfile ($) { my $file= shift; my $text; open(FILE,"<",$file) or mtr_error("can't open file \"$file\": $!"); while (my $line= <FILE>) { $text= $line; } close FILE; return $text; } sub mtr_tofile ($@) { my $file= shift; open(FILE,">>",$file) or mtr_error("can't open file \"$file\": $!"); print FILE join("", @_); close FILE; } sub mtr_tonewfile ($@) { my $file= shift; open(FILE,">",$file) or mtr_error("can't open file \"$file\": $!"); print FILE join("", @_); close FILE; } sub mtr_appendfile_to_file ($$) { my $from_file= shift; my $to_file= shift; open(TOFILE,">>",$to_file) or mtr_error("can't open file \"$to_file\": $!"); open(FROMFILE,"<",$from_file) or mtr_error("can't open file \"$from_file\": $!"); print TOFILE while (<FROMFILE>); close FROMFILE; close TOFILE; } # Read a whole file verbatim. sub mtr_grab_file($) { my $file= shift; open(FILE, '<', $file) or return undef; local $/= undef; my $data= scalar(<FILE>); close FILE; return $data; } 1;
Close