FreeBSD Bugzilla – Attachment 152617 Details for
Bug 197371
tar -X does not allow empty file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
archive_match.c.diff
archive_match.c.diff (text/plain), 874 bytes, created by
Rudolf Čejka
on 2015-02-06 13:18:08 UTC
(
hide
)
Description:
archive_match.c.diff
Filename:
MIME Type:
Creator:
Rudolf Čejka
Created:
2015-02-06 13:18:08 UTC
Size:
874 bytes
patch
obsolete
>--- libarchive/archive_match.c.orig 2015-01-13 12:03:38.000000000 +0100 >+++ libarchive/archive_match.c 2015-02-06 14:04:37.000000000 +0100 >@@ -585,6 +585,12 @@ > archive_read_free(ar); > return (r); > } >+ r = archive_read_support_format_empty(ar); >+ if (r != ARCHIVE_OK) { >+ archive_copy_error(&(a->archive), ar); >+ archive_read_free(ar); >+ return (r); >+ } > if (mbs) > r = archive_read_open_filename(ar, pathname, 512*20); > else >@@ -595,7 +601,7 @@ > return (r); > } > r = archive_read_next_header(ar, &ae); >- if (r != ARCHIVE_OK) { >+ if (r != ARCHIVE_OK && r != ARCHIVE_EOF) { > archive_copy_error(&(a->archive), ar); > archive_read_free(ar); > return (r); >@@ -603,6 +609,7 @@ > > archive_string_init(&as); > >+ if (r != ARCHIVE_EOF) > while ((r = archive_read_data_block(ar, &buff, &size, &offset)) > == ARCHIVE_OK) { > const char *b = (const char *)buff;
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 197371
: 152617