diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-02-01 06:18:17 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-02-01 06:18:17 +0000 |
commit | 5d5227539d7bfab73bd934f58666746209893ab4 (patch) | |
tree | b6d13d0072dd0ec2772d200e2d809b889365ef1a /lib/libarchive/archive_read.c | |
parent | 114dbcad6232243ead37c111514ad3f6343371bf (diff) | |
download | FreeBSD-src-5d5227539d7bfab73bd934f58666746209893ab4.zip FreeBSD-src-5d5227539d7bfab73bd934f58666746209893ab4.tar.gz |
Add support for a new archive format "empty" that reads empty files.
Diffstat (limited to 'lib/libarchive/archive_read.c')
-rw-r--r-- | lib/libarchive/archive_read.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libarchive/archive_read.c b/lib/libarchive/archive_read.c index 9e5acab..c24f139 100644 --- a/lib/libarchive/archive_read.c +++ b/lib/libarchive/archive_read.c @@ -172,16 +172,6 @@ archive_read_open2(struct archive *a, void *client_data, return (ARCHIVE_FATAL); } - /* An empty archive is a serious error. */ - if (bytes_read == 0) { - archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT, - "Empty input file"); - /* Close the empty file. */ - if (client_closer) - (client_closer)(a, client_data); - return (ARCHIVE_FATAL); - } - /* Now that the client callbacks have worked, remember them. */ a->client_opener = client_opener; /* Do we need to remember this? */ a->client_reader = client_reader; |