Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 634550 Details for
Bug 682798
app-arch/rpm2targz-9.0.0.5g: rpm2tar fails thinking it is not a rpm file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Check for lzma before rest
rpm2targz-9.0.0.5g-check-for-lzma-early.patch (text/plain), 1.20 KB, created by
Thomas Deutschmann (RETIRED)
on 2020-04-25 14:34:01 UTC
(
hide
)
Description:
Check for lzma before rest
Filename:
MIME Type:
Creator:
Thomas Deutschmann (RETIRED)
Created:
2020-04-25 14:34:01 UTC
Size:
1.20 KB
patch
obsolete
>--- a/rpmoffset.c >+++ b/rpmoffset.c >@@ -104,6 +104,15 @@ int main(int argc, char *argv[]) > if (read_cnt + left < MAGIC_SIZE_MIN) > break; > >+ if (!lzma_offset && read_cnt + left >= magic_lzma_len) { >+ for (i = 0; i <= read_cnt + left - magic_lzma_len; ++i) >+ if (is_magic_lzma(p + i)) { >+ lzma_offset = offset + i; >+ return magic_finish("lzma", lzma_offset); >+ } >+ } >+ >+ /* Scan for the rest ... */ > for (i = 0; i < ARRAY_SIZE(magics); ++i) { > const char *needle; > >@@ -115,15 +124,6 @@ int main(int argc, char *argv[]) > return magic_finish(magics[i].type, offset + (needle - p)); > } > >- /* Scan for LZMA magic, but don't return yet ... */ >- if (!lzma_offset && read_cnt + left >= magic_lzma_len) { >- for (i = 0; i <= read_cnt + left - magic_lzma_len; ++i) >- if (is_magic_lzma(p + i)) { >- lzma_offset = offset + i; >- break; >- } >- } >- > memmove(p, p + left + read_cnt - MAGIC_SIZE_MIN + 1, MAGIC_SIZE_MIN - 1); > > offset += read_cnt; >@@ -133,10 +133,6 @@ int main(int argc, char *argv[]) > } > } > >- /* Delay till the end for LZMA archives since it is too fuzzy */ >- if (lzma_offset) >- return magic_finish("lzma", lzma_offset); >- > if (ferror(stdin)) > perror(argv[0]); >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 682798
: 634550