Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
dist /
PathTools /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
Functions.t
730
B
-r--r--r--
2014-12-27 11:48
Spec-taint.t
386
B
-r--r--r--
2014-12-27 11:48
Spec.t
52.04
KB
-r--r--r--
2014-12-27 11:48
crossplatform.t
5.62
KB
-r--r--r--
2014-12-27 11:48
cwd.t
8.75
KB
-r--r--r--
2014-12-27 11:48
rel2abs2rel.t
2.07
KB
-r--r--r--
2014-12-27 11:48
taint.t
813
B
-r--r--r--
2014-12-27 11:48
tmpdir.t
1.52
KB
-r--r--r--
2014-12-27 11:48
win32.t
607
B
-r--r--r--
2014-12-27 11:48
Save
Rename
#!/usr/bin/perl -w # Here we make sure File::Spec can properly deal with executables. # VMS has some trouble with these. use File::Spec; use lib File::Spec->catdir('t', 'lib'); use Test::More (-x $^X ? (tests => 5) : (skip_all => "Can't find an executable file") ); BEGIN { # Set up a tiny script file local *F; open(F, ">rel2abs2rel$$.pl") or die "Can't open rel2abs2rel$$.pl file for script -- $!\n"; print F qq(print "ok\\n"\n); close(F); } END { 1 while unlink("rel2abs2rel$$.pl"); 1 while unlink("rel2abs2rel$$.tmp"); } use Config; # Change 'perl' to './perl' so the shell doesn't go looking through PATH. sub safe_rel { my($perl) = shift; $perl = File::Spec->catfile(File::Spec->curdir, $perl) unless File::Spec->file_name_is_absolute($perl); return $perl; } # Make a putative perl binary say "ok\n". We have to do it this way # because the filespec of the binary may contain characters that a # command interpreter considers special, so we can't use the obvious # `$perl -le "print 'ok'"`. And, for portability, we can't use fork(). sub sayok{ my $perl = shift; open(STDOUTDUP, '>&STDOUT'); open(STDOUT, ">rel2abs2rel$$.tmp") or die "Can't open scratch file rel2abs2rel$$.tmp -- $!\n"; system($perl, "rel2abs2rel$$.pl"); open(STDOUT, '>&STDOUTDUP'); close(STDOUTDUP); local *F; open(F, "rel2abs2rel$$.tmp"); local $/ = undef; my $output = <F>; close(F); return $output; } print "# Checking manipulations of \$^X=$^X\n"; my $perl = safe_rel($^X); is( sayok($perl), "ok\n", "'$perl rel2abs2rel$$.pl' works" ); $perl = File::Spec->rel2abs($^X); is( sayok($perl), "ok\n", "'$perl rel2abs2rel$$.pl' works" ); $perl = File::Spec->canonpath($perl); is( sayok($perl), "ok\n", "canonpath(rel2abs($^X)) = $perl" ); $perl = safe_rel(File::Spec->abs2rel($perl)); is( sayok($perl), "ok\n", "safe_rel(abs2rel(canonpath(rel2abs($^X)))) = $perl" ); $perl = safe_rel(File::Spec->canonpath($^X)); is( sayok($perl), "ok\n", "safe_rel(canonpath($^X)) = $perl" );