Skip Menu |

This queue is for tickets about the Compress-Bzip2 CPAN distribution.

Report information
The Basics
Id: 45022
Status: resolved
Priority: 0/
Queue: Compress-Bzip2

People
Owner: Nobody in particular
Requestors: RURBAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Windows test fix
Attached fix is for Windows users with administrative rights (to open a 0000 file). To workaround properly, checking with the Windows API against such a group membership is not worth the effort. -- Reini Urban
Subject: Compress-Bzip2-2.09.patch
diffbk Compress-Bzip2-2.09-ah0mmu diff -u Compress-Bzip2-2.09-ah0mmu/t/041-error.t~ Compress-Bzip2-2.09-ah0mmu/t/041-error.t --- Compress-Bzip2-2.09-ah0mmu/t/041-error.t~ 2005-08-09 19:31:22.000000000 +0200 +++ Compress-Bzip2-2.09-ah0mmu/t/041-error.t 2009-04-14 08:51:26.515625000 +0200 @@ -53,7 +53,7 @@ chmod( 0000, "$PREFIX-protected.bz2" ) or die; SKIP: { - skip "because running as root", 2 if $> == 0; + skip "because running as root", 2 if $> == 0 or $^O =~ /cygwin|MSWin32/; $d = Compress::Bzip2->new( -verbosity => $debugf ? 4 : 0, -blockSize100k => 1 ); $res = $d->bzopen( "$PREFIX-protected.bz2", "w" );
On Tue Apr 14 02:57:58 2009, RURBAN wrote: Show quoted text
> Attached fix is for Windows users with administrative rights > (to open a 0000 file). > To workaround properly, checking with the Windows API against > such a group membership is not worth the effort.
Thanks. Will be fixed but a bit differently by checking -w file in the upcoming 2.10. See https://github.com/rurban/Compress-Bzip2/ * 03f67fa : fix 2 win32 problems: full nmake path, perm 0000 writable check in 041-error -- Reini Urban