Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 867346 Details for
Bug 911878
app-arch/deb2targz-1-r3 extracts data.tar.gz/ (Yes with trailing /) and fails to write file thinking its a directory
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch so extension regexp ignores trailing '/' in section name
file_911878.txt (text/plain), 511 bytes, created by
Benjamin Réveillé
on 2023-08-07 17:50:36 UTC
(
hide
)
Description:
Patch so extension regexp ignores trailing '/' in section name
Filename:
MIME Type:
Creator:
Benjamin Réveillé
Created:
2023-08-07 17:50:36 UTC
Size:
511 bytes
patch
obsolete
>--- a/deb2targz 2023-08-07 19:03:44.785167368 +0200 >+++ b/deb2targz 2023-08-07 18:55:24.580476467 +0200 >@@ -47,7 +47,7 @@ > ($header, $data) = ($data =~ /(.*?)\n(.*)/s); > my($name, $num1, $num2, $num3, $num4, $len) = split /\s+/, $header; > #print "header='$header'\n\tname='$name', len=$len\n"; >- if ($name =~ /^data\.tar(.*)$/) { >+ if ($name =~ /^data\.tar(.[^\/]*)\/*$/) { > # Found it > my $ext = $1; > $data = substr($data, 0, $len);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 911878
: 867346