diff options
author | Tim Kientzle <kientzle@gmail.com> | 2010-02-27 15:11:42 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2010-02-27 15:11:42 -0500 |
commit | 59fd3df7cb61e71a729788f80533a592e0cd5294 (patch) | |
tree | c852889ddf7f9a000db9b5407752e86c98892632 /libarchive/archive_read_support_format_raw.c | |
parent | 411d7de8a7c997ff679b676c78661e97a6411044 (diff) | |
download | libarchive-59fd3df7cb61e71a729788f80533a592e0cd5294.tar.gz |
Minor fixups for the raw handler: Use "raw" as the name
for consistency, set filetype/perm to something that
would allow this entry to be reasonably extracted.
SVN-Revision: 1999
Diffstat (limited to 'libarchive/archive_read_support_format_raw.c')
-rw-r--r-- | libarchive/archive_read_support_format_raw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libarchive/archive_read_support_format_raw.c b/libarchive/archive_read_support_format_raw.c index f159a216..89e6940d 100644 --- a/libarchive/archive_read_support_format_raw.c +++ b/libarchive/archive_read_support_format_raw.c @@ -114,9 +114,10 @@ archive_read_format_raw_read_header(struct archive_read *a, return (ARCHIVE_EOF); a->archive.archive_format = ARCHIVE_FORMAT_RAW; - a->archive.archive_format_name = "Raw data"; + a->archive.archive_format_name = "raw"; archive_entry_set_pathname(entry, "data"); - /* XXX should we set mode to mimic a regular file? XXX */ + archive_entry_set_filetype(entry, AE_IFREG); + archive_entry_set_perm(entry, 0644); /* I'm deliberately leaving most fields unset here. */ return (ARCHIVE_OK); } |